Überprüfungsfall abrufen
GET/v1/compliance/review/cases/{case_id}
Liest einen Überprüfungsfall.
Ein Fall, den der API-Key nicht erreichen kann oder den Anthropic nicht gesendet hat, gibt denselben 404-Fehler zurück wie ein Fall, der nicht existiert.
Ein Admin-API-Key mit dem Scope read:compliance_review_cases kann diesen Endpunkt aufrufen.
Parameters
Returns
Überprüfungsfall abrufen
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.Get(
context.TODO(),
"case_id",
anthropic.BetaComplianceReviewCaseGetParams{},
)
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"
}