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 main
import (
"context"
"fmt"
"github.com/anthropics/anthropic-sdk-go/v2"
"github.com/anthropics/anthropic-sdk-go/v2/option"
)
func main() {
client := anthropic.NewClient(
option.WithAPIKey("my-anthropic-api-key"),
)
betaComplianceReviewCase, err := client.Beta.Compliance.Review.Cases.Respond(
context.TODO(),
"case_id",
anthropic.BetaComplianceReviewCaseRespondParams{
Determination: anthropic.BetaComplianceReviewDeterminationNoViolation,
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", betaComplianceReviewCase.ID)
}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"
}