검토 케이스에 응답
POST/v1/compliance/review/cases/{case_id}/respond
검토 케이스에 대한 결론을 보냅니다. 응답하면 케이스가 종결되며, 종결된 케이스는 다시 열 수 없습니다.
첫 번째 응답만 유효합니다. 요청은 다시 보내도 안전합니다. 종결된 케이스에 목록 순서와 관계없이 동일한 필드 값을 가진 응답이 있으면 API는 200을 반환하고 아무것도 변경하지 않습니다. 종결된 케이스에 다른 응답이 있거나 응답이 없으면 API는 error.details.error_code에 case_closed가 포함된 400을 반환합니다.
귀하 대신 최종 고객이 이 케이스를 검토하는 경우 API는 error.details.error_code에 case_reviewed_by_end_customer가 포함된 403을 반환합니다.
write:compliance_review_cases 범위를 가진 Admin API 키로 이 엔드포인트를 호출할 수 있습니다.
Parameters
Returns
검토 케이스에 응답
require "anthropic"
anthropic = Anthropic::Client.new(api_key: "my-anthropic-api-key")
beta_compliance_review_case = anthropic.beta.compliance.review.cases.respond("case_id", determination: :no_violation)
puts(beta_compliance_review_case)Response 200
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"enforcement_action": {
"type": "type"
},
"organization_id": "organization_id",
"policy_categories": [
"cyber"
],
"status": {
"type": "open"
},
"transcripts": [
{
"item_id": "item_id",
"user_profile_id": "user_profile_id"
}
],
"type": "compliance_review_case",
"updated_at": "2019-12-27T18:11:19.117Z",
"workspace_id": "workspace_id"
}Returns Examples
Response 200
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"enforcement_action": {
"type": "type"
},
"organization_id": "organization_id",
"policy_categories": [
"cyber"
],
"status": {
"type": "open"
},
"transcripts": [
{
"item_id": "item_id",
"user_profile_id": "user_profile_id"
}
],
"type": "compliance_review_case",
"updated_at": "2019-12-27T18:11:19.117Z",
"workspace_id": "workspace_id"
}