Respond to Review Case
POST/v1/compliance/review/cases/{case_id}/respond
Send your conclusion on a review case. A response closes the case, and a closed case can't be reopened.
Only the first response counts. A request is safe to send again: if the closed case has a response with the same field values, in any list order, the API returns 200 and changes nothing. If the closed case has a different response, or none, the API returns a 400 with case_closed in error.details.error_code.
If your end customer reviews this case instead of you, the API returns a 403 with case_reviewed_by_end_customer in error.details.error_code.
An Admin API key with the write:compliance_review_cases scope can call this endpoint.
Parameters
Returns
Respond to Review Case
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"
}