回應審查案件
POST/v1/compliance/review/cases/{case_id}/respond
傳送您對審查案件的結論。回應會關閉該案件,且已關閉的案件無法重新開啟。
只有第一次回應有效。請求可安全地重新傳送:若已關閉的案件具有欄位值相同的回應(清單順序不限),API 會傳回 200 且不做任何變更。若已關閉的案件具有不同的回應或沒有回應,API 會傳回 400,並在 error.details.error_code 中包含 case_closed。
若此案件由您的終端客戶而非您審查,API 會傳回 403,並在 error.details.error_code 中包含 case_reviewed_by_end_customer。
具有 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"
}