Claude Platform Docs

Perbarui Pengaturan Kepatuhan

POST/v1/organizations/compliance_settings

Perbarui Pengaturan Kepatuhan (Compliance Settings) organisasi Anda.

Mengatur state ke enabled akan mengaktifkan Compliance API dan mulai merekam event aktivitas organisasi. Mengaturnya ke disabled akan menonaktifkan keduanya. state mencerminkan apakah Compliance API diaktifkan.

Permintaan yang mengatur state ke nilainya saat ini akan berhasil dan membiarkan resource tidak berubah. Permintaan disabled tetap berlaku hingga ada permintaan enabled berikutnya atau tindakan provisioning organisasi berikutnya yang mengaktifkan Access Transparency: mengaktifkan Access Transparency juga mengaktifkan Compliance API, yang menyajikan event aktivitasnya, sehingga provisioning tersebut (termasuk eksekusi ulang) mengaktifkan kembali Compliance API bahkan setelah permintaan disabled. Provisioning otomatis tidak pernah menonaktifkan pengaturan kepatuhan.

Headers
"anthropic-version": optional string

The version of the Claude API you want to use.

Read more about versioning and our version history here.

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:
BetaComplianceSettingsStateEnabledParam object{ type: "enabled" }
type: "enabled"
BetaComplianceSettingsStateDisabledParam object{ type: "disabled" }
type: "disabled"
Returns
BetaComplianceSettings object{ type: "compliance_settings", state }
type: "compliance_settings"
defaultcompliance_settings

Whether the Compliance API is enabled for this organization.

One of the following:
BetaComplianceSettingsStateEnabled object{ type: "enabled" }
type: "enabled"
defaultenabled
BetaComplianceSettingsStateDisabled object{ type: "disabled" }
type: "disabled"
defaultdisabled
Perbarui Pengaturan Kepatuhan
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"
}