Claude Platform Docs

托管设置

Models
type BetaCMEKFeatureUnsupportedErrorDetails struct { ErrorCode }
ErrorCode BetaCMEKFeatureUnsupportedErrorCode
type BetaRBACGroupManagedSettingsNotFoundErrorDetails struct { ErrorCode }
ErrorCode BetaRBACGroupManagedSettingsNotFoundErrorCode
type BetaRBACGroupOrderLimitExceededErrorDetails struct { ErrorCode }
ErrorCode BetaRBACGroupOrderLimitExceededErrorCode
type BetaSettingsDocumentLimitExceededErrorDetails struct { ErrorCode }
ErrorCode BetaSettingsDocumentLimitExceededErrorCode
type BetaSettingsHistoryLimitExceededErrorDetails struct { ErrorCode }
ErrorCode BetaSettingsHistoryLimitExceededErrorCode
Errors
const ErrorCodeBetaCMEKFeatureUnsupported ErrorCode = "cmek_feature_unsupported"⁠HTTP status 400

This stored settings document currently cannot be read or replaced. Contact support, or, if you no longer need these settings, delete the group's settings or clear the default.

const ErrorCodeBetaRBACGroupOrderLimitExceeded ErrorCode = "rbac_group_order_limit_exceeded"⁠HTTP status 400

The RBAC Group order already has the most groups allowed. Delete another group's settings first.

const ErrorCodeBetaSettingsDocumentLimitExceeded ErrorCode = "settings_document_limit_exceeded"⁠HTTP status 400

The organization has reached its limit of settings documents, counting unused ones. An owner can remove unused documents in claude.ai. Deleting a group's settings or clearing the default settings also frees a document, if nothing else uses it. None of these works once the organization has also reached its settings history limit.

const ErrorCodeBetaSettingsHistoryLimitExceeded ErrorCode = "settings_history_limit_exceeded"⁠HTTP status 400

The organization has reached its settings history limit, a cap on stored versions of its settings documents. Nothing in the API or claude.ai lowers the count, so contact support. Creating or deleting group settings, creating or clearing the default settings, and reordering are refused. Changing the mode still works, unless it would copy the organization settings into a new default.

const ErrorCodeBetaRBACGroupManagedSettingsNotFound ErrorCode = "rbac_group_managed_settings_not_found"⁠HTTP status 404

This RBAC Group has no Claude Code managed settings.

托管设置配置

获取 Claude Code 托管设置配置
client.Beta.Organization.ClaudeCode.ManagedSettings.Configuration.Get(ctx, query) (*BetaClaudeCodeManagedSettingsConfiguration, error)
GET/v1/organizations/claude_code/managed_settings/configuration
Requires anthropic-beta: ce-claude-code-managed-settings-2026-10-06. Learn how to send beta headers.

检索组织的 Claude Code 托管设置模式和 RBAC 组顺序。

更新 Claude Code 托管设置配置
client.Beta.Organization.ClaudeCode.ManagedSettings.Configuration.Update(ctx, params) (*BetaClaudeCodeManagedSettingsConfiguration, error)
POST/v1/organizations/claude_code/managed_settings/configuration
Requires anthropic-beta: ce-claude-code-managed-settings-2026-10-06. Learn how to send beta headers.

在一次原子写入中更改组织的 Claude Code 托管设置模式、RBAC 组顺序,或同时更改两者。

托管设置RBAC 组

列出 RBAC 组 Claude Code 托管设置
client.Beta.Organization.ClaudeCode.ManagedSettings.RBACGroups.List(ctx, params) (*PageCursor[BetaClaudeCodeRBACGroupManagedSettingsSummary], error)
GET/v1/organizations/claude_code/managed_settings/rbac_groups
Requires anthropic-beta: ce-claude-code-managed-settings-2026-10-06. Learn how to send beta headers.

列出具有 Claude Code 托管设置的 RBAC 组,按优先级从高到低排列。

获取 RBAC 组 Claude Code 托管设置
client.Beta.Organization.ClaudeCode.ManagedSettings.RBACGroups.Get(ctx, rbacGroupID, query) (*BetaClaudeCodeRBACGroupManagedSettings, error)
GET/v1/organizations/claude_code/managed_settings/rbac_groups/{rbac_group_id}
Requires anthropic-beta: ce-claude-code-managed-settings-2026-10-06. Learn how to send beta headers.

检索 RBAC 组的 Claude Code 托管设置。

设置 RBAC 组 Claude Code 托管设置
client.Beta.Organization.ClaudeCode.ManagedSettings.RBACGroups.Set(ctx, rbacGroupID, params) (*BetaClaudeCodeRBACGroupManagedSettings, error)
POST/v1/organizations/claude_code/managed_settings/rbac_groups/{rbac_group_id}
Requires anthropic-beta: ce-claude-code-managed-settings-2026-10-06. Learn how to send beta headers.

创建或替换 RBAC 组的 Claude Code 托管设置。

删除 RBAC 组 Claude Code 托管设置
client.Beta.Organization.ClaudeCode.ManagedSettings.RBACGroups.Delete(ctx, rbacGroupID, body) (*BetaDeletedClaudeCodeRBACGroupManagedSettings, error)
DELETE/v1/organizations/claude_code/managed_settings/rbac_groups/{rbac_group_id}
Requires anthropic-beta: ce-claude-code-managed-settings-2026-10-06. Learn how to send beta headers.

删除 RBAC 组的 Claude Code 托管设置,并将该组从 rbac_group_order 中移除。

托管设置RBAC 组默认设置

获取 RBAC 组默认 Claude Code 托管设置
client.Beta.Organization.ClaudeCode.ManagedSettings.RBACGroupDefault.Get(ctx, query) (*BetaClaudeCodeRBACGroupDefaultManagedSettings, error)
GET/v1/organizations/claude_code/managed_settings/rbac_group_default
Requires anthropic-beta: ce-claude-code-managed-settings-2026-10-06. Learn how to send beta headers.

检索默认的 Claude Code 托管设置。在 rbac_groups 模式下,不属于 rbac_group_order 中任何 RBAC 组的成员将获得这些设置。

更新 RBAC 组默认 Claude Code 托管设置
client.Beta.Organization.ClaudeCode.ManagedSettings.RBACGroupDefault.Update(ctx, params) (*BetaClaudeCodeRBACGroupDefaultManagedSettings, error)
POST/v1/organizations/claude_code/managed_settings/rbac_group_default
Requires anthropic-beta: ce-claude-code-managed-settings-2026-10-06. Learn how to send beta headers.

设置或替换默认的 Claude Code 托管设置,或使用 null 将其清除。