Claude Platform Docs

合规设置

获取合规设置
client.Organization.ComplianceSettings.Get(ctx) (*OrganizationComplianceSettings, error)
GET/v1/organizations/compliance_settings

检索您组织的合规设置。

更新合规设置
client.Organization.ComplianceSettings.Update(ctx, body) (*OrganizationComplianceSettings, error)
POST/v1/organizations/compliance_settings

更新您组织的合规设置。

Models
type ComplianceSettingsStateUnion interface{…}
One of the following:
type ComplianceSettingsStateEnabled struct { Type: "enabled" }
Type Enabled
defaultenabled
type ComplianceSettingsStateDisabled struct { Type: "disabled" }
Type Disabled
defaultdisabled
type ComplianceSettingsStateDisabled struct { Type: "disabled" }
Type Disabled
defaultdisabled
type ComplianceSettingsStateDisabledParam struct { Type: "disabled" }
Type Disabled
type ComplianceSettingsStateEnabled struct { Type: "enabled" }
Type Enabled
defaultenabled
type ComplianceSettingsStateEnabledParam struct { Type: "enabled" }
Type Enabled
type ComplianceSettingsStateParamUnion interface{…}
One of the following:
type ComplianceSettingsStateEnabledParam struct { Type: "enabled" }
Type Enabled
type ComplianceSettingsStateDisabledParam struct { Type: "disabled" }
Type Disabled
type OrganizationComplianceSettings struct { Type: "compliance_settings"; State }
Type ComplianceSettings
defaultcompliance_settings

Whether the Compliance API is enabled for this organization.

One of the following:
type ComplianceSettingsStateEnabled struct { Type: "enabled" }
Type Enabled
defaultenabled
type ComplianceSettingsStateDisabled struct { Type: "disabled" }
Type Disabled
defaultdisabled