Claude Platform Docs

コンプライアンス設定を更新

POST/v1/organizations/compliance_settings

組織のコンプライアンス設定を更新します。

state を enabled に設定すると、Compliance API が有効になり、組織のアクティビティイベントの記録が開始されます。disabled に設定すると、両方が無効になります。state は Compliance API が有効かどうかを反映します。

state を現在の値に設定するリクエストは成功し、リソースは変更されません。disabled リクエストは、後続の enabled リクエスト、または Access Transparency を有効にする組織の次回のプロビジョニングアクションまで有効です。Access Transparency を有効にすると、そのアクティビティイベントを提供する Compliance API も有効になるため、そのようなプロビジョニング(再実行を含む)は、disabled リクエストの後であっても Compliance API を再度有効にします。自動プロビジョニングによってコンプライアンス設定が無効になることはありません。

Body

Desired state. Accepts the string shorthand "enabled" or "disabled" in place of the object form; the response always returns the canonical object form.

One of the following:
ComplianceSettingsStateEnabledParam object{ type: "enabled" }
type: "enabled"
ComplianceSettingsStateDisabledParam object{ type: "disabled" }
type: "disabled"
Returns
OrganizationComplianceSettings object{ type: "compliance_settings", state }
type: "compliance_settings"
defaultcompliance_settings

Whether the Compliance API is enabled for this organization.

One of the following:
ComplianceSettingsStateEnabled object{ type: "enabled" }
type: "enabled"
defaultenabled
ComplianceSettingsStateDisabled object{ type: "disabled" }
type: "disabled"
defaultdisabled
コンプライアンス設定を更新
curl https://api.anthropic.com/v1/organizations/compliance_settings \
    -H 'Content-Type: application/json' \
    -H 'anthropic-version: 2023-06-01' \
    -H "X-Api-Key: $ANTHROPIC_API_KEY" \
    -d '{
          "state": {
            "type": "enabled"
          }
        }'
Returns Examples
Response 200
{
  "state": {
    "type": "enabled"
  },
  "type": "compliance_settings"
}