回應審查案件
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
回應審查案件
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"
}