Claude Platform Docs

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

$ ant beta:organization:compliance-settings update
POST/v1/organizations/compliance_settings

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

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

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

Parameters

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

Returns
beta_compliance_settings: object{ state, type }

Whether the Compliance API is enabled for this organization.

One of the following:
beta_compliance_settings_state_enabled: object{ type }
type: "enabled"
beta_compliance_settings_state_disabled: object{ type }
type: "disabled"
type: "compliance_settings"
コンプライアンス設定を更新
ant beta:organization:compliance-settings update \
  --api-key my-anthropic-api-key \
  --state '{type: enabled}'
Returns Examples
Response 200
{
  "state": {
    "type": "enabled"
  },
  "type": "compliance_settings"
}