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
package com.anthropic.example;
import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.beta.compliance.review.cases.BetaComplianceReviewCase;
import com.anthropic.models.beta.compliance.review.cases.BetaComplianceReviewDetermination;
import com.anthropic.models.beta.compliance.review.cases.CaseRespondParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
CaseRespondParams params = CaseRespondParams.builder()
.caseId("case_id")
.determination(BetaComplianceReviewDetermination.NO_VIOLATION)
.build();
BetaComplianceReviewCase betaComplianceReviewCase = client.beta().compliance().review().cases().respond(params);
}
}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"
}