Claude Platform Docs

Compliance-Einstellungen aktualisieren

POST/v1/organizations/compliance_settings

Aktualisiere die Compliance-Einstellungen deiner Organisation.

Wenn state auf enabled gesetzt wird, wird die Compliance API eingeschaltet und die Erfassung von Aktivitätsereignissen der Organisation beginnt. Wird es auf disabled gesetzt, wird beides ausgeschaltet. state gibt an, ob die Compliance API aktiviert ist.

Eine Anfrage, die state auf seinen aktuellen Wert setzt, ist erfolgreich und lässt die Ressource unverändert. Eine disabled-Anfrage bleibt wirksam bis zu einer späteren enabled-Anfrage oder der nächsten Bereitstellungsaktion der Organisation, die Access Transparency aktiviert: Das Aktivieren von Access Transparency aktiviert auch die Compliance API, die deren Aktivitätsereignisse bereitstellt, sodass eine solche Bereitstellung (einschließlich erneuter Durchläufe) die Compliance API auch nach einer disabled-Anfrage wieder aktiviert. Automatisierte Bereitstellung deaktiviert Compliance-Einstellungen niemals.

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

Whether the Compliance API is enabled for this organization.

One of the following:
BetaComplianceSettingsStateEnabled object{ type }
type: "enabled"
defaultenabled
BetaComplianceSettingsStateDisabled object{ type }
type: "disabled"
defaultdisabled
type: "compliance_settings"
defaultcompliance_settings
Compliance-Einstellungen aktualisieren
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"
}