Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

코드 Artifact 삭제

DELETE/v1/compliance/apps/code/artifacts/{artifact_id}

코드 Artifact와 모든 버전을 영구적으로 삭제합니다. 이는 되돌릴 수 없는 파괴적 작업입니다. 200 응답은 삭제가 시작되었고 Artifact가 확보되었음을 의미합니다. 콘텐츠 제거는 비동기적으로 완료됩니다.

존재하지 않거나 다른 상위 조직에 속한 Artifact에 대해서는 404를 반환합니다. 이미 삭제된 Artifact를 반복 삭제하는 경우에도 404를 반환합니다.

Path parameters
artifact_id: string

The Artifact ID (tagged ID, e.g., cart_abc123)

Headers
"anthropic-version": optional string

The version of the Claude API you want to use.

Read more about versioning and our version history here.

"x-api-key": optional string
Returns
type: "code_artifact_deleted"

Constant string confirming deletion

defaultcode_artifact_deleted
id: string

The ID of the Artifact that was deleted

코드 Artifact 삭제
cURL
curl https://api.anthropic.com/v1/compliance/apps/code/artifacts/$ARTIFACT_ID \
    -X DELETE \
    -H 'anthropic-version: 2023-06-01' \
    -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
Returns Examples
Response 200
{
  "id": "cart_xyz789",
  "type": "code_artifact_deleted"
}