Tanggapi Kasus Tinjauan
Kirimkan kesimpulan Anda atas kasus tinjauan. Respons akan menutup kasus, dan kasus yang sudah ditutup tidak dapat dibuka kembali.
Hanya respons pertama yang dihitung. Permintaan aman untuk dikirim ulang: jika kasus yang ditutup memiliki respons dengan nilai field yang sama, dalam urutan daftar apa pun, API mengembalikan 200 dan tidak mengubah apa pun. Jika kasus yang ditutup memiliki respons yang berbeda, atau tidak memiliki respons sama sekali, API mengembalikan 400 dengan case_closed di error.details.error_code.
Jika pelanggan akhir Anda yang meninjau kasus ini alih-alih Anda, API mengembalikan 403 dengan case_reviewed_by_end_customer di error.details.error_code.
Kunci Admin API dengan scope write:compliance_review_cases dapat memanggil endpoint ini.
Parameters
Returns
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)
}{
"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
{
"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"
}