レビューケースに応答
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
レビューケースに応答
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"
}