Class: Anthropic::Resources::Beta::Organization::ClaudeCode::ManagedSettings::Configuration
- Inherits:
-
Object
- Object
- Anthropic::Resources::Beta::Organization::ClaudeCode::ManagedSettings::Configuration
- Defined in:
- lib/anthropic/resources/beta/organization/claude_code/managed_settings/configuration.rb,
sig/anthropic/resources/beta/organization/claude_code/managed_settings/configuration.rbs
Instance Method Summary collapse
-
#initialize(client:) ⇒ Configuration
constructor
private
A new instance of Configuration.
-
#retrieve(betas: nil, request_options: {}) ⇒ Anthropic::Models::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeManagedSettingsConfiguration
Retrieve the organization's Claude Code managed settings mode and RBAC Group order.
-
#update(mode: nil, rbac_group_order: nil, rbac_group_order_version: nil, betas: nil, request_options: {}) ⇒ Anthropic::Models::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeManagedSettingsConfiguration
Change the organization's Claude Code managed settings mode, the RBAC Group order, or both, in one atomic write.
Constructor Details
#initialize(client:) ⇒ Configuration
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Configuration.
132 133 134 |
# File 'lib/anthropic/resources/beta/organization/claude_code/managed_settings/configuration.rb', line 132 def initialize(client:) @client = client end |
Instance Method Details
#retrieve(betas: nil, request_options: {}) ⇒ Anthropic::Models::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeManagedSettingsConfiguration
Retrieve the organization's Claude Code managed settings mode and RBAC Group order.
Accepted credentials: an organization-level Admin API key with the
read:claude_code_managed_settings scope.
Every request must include the beta header
anthropic-beta: ce-claude-code-managed-settings-2026-10-06. A request without
it, or from an organization not enabled for this beta, returns 404. The Claude
Code Managed Settings API is in beta and is available to Claude Enterprise
organizations only.
Some parameter documentations has been truncated, see Models::Beta::Organization::ClaudeCode::ManagedSettings::ConfigurationRetrieveParams for more details.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/anthropic/resources/beta/organization/claude_code/managed_settings/configuration.rb', line 35 def retrieve(params = {}) parsed, = Anthropic::Beta::Organization::ClaudeCode::ManagedSettings::ConfigurationRetrieveParams.dump_request( params ) @client.request( qualifiers: {beta: "true"}, span_name: Anthropic::Internal::Tracing::SpanName::ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_CONFIGURATION_RETRIEVE, span_route: "/v1/organizations/claude_code/managed_settings/configuration", method: :get, path: "v1/organizations/claude_code/managed_settings/configuration", headers: parsed.transform_keys(betas: "anthropic-beta"), model: Anthropic::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeManagedSettingsConfiguration, options: { extra_headers: {"anthropic-beta" => "ce-claude-code-managed-settings-2026-10-06"}, ** } ) end |
#update(mode: nil, rbac_group_order: nil, rbac_group_order_version: nil, betas: nil, request_options: {}) ⇒ Anthropic::Models::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeManagedSettingsConfiguration
Change the organization's Claude Code managed settings mode, the RBAC Group order, or both, in one atomic write.
To change the order, send rbac_group_order with the rbac_group_order_version
from the read the change is based on. If the order has changed since that read,
the request returns 409: read it again and retry. To switch modes only if the
order has not changed, send the current rbac_group_order and
rbac_group_order_version with the new mode.
A switch to rbac_groups mode with no RBAC Group settings and no default
settings copies the organization settings into a new default, in the same write,
so members keep the settings they had. The copy does not follow later changes to
the organization settings. If the organization settings cannot be copied, the
request returns 400 and changes nothing. If they cannot be read, are over 1
MiB or are not valid, setting the default settings first avoids the copy.
After a switch to rbac_groups mode, a member in no listed RBAC Group receives
the default settings, or no settings if no default is set, not the organization
settings.
Accepted credentials: an organization-level Admin API key with the
write:claude_code_managed_settings scope.
Every request must include the beta header
anthropic-beta: ce-claude-code-managed-settings-2026-10-06. A request without
it, or from an organization not enabled for this beta, returns 404. The Claude
Code Managed Settings API is in beta and is available to Claude Enterprise
organizations only.
A write that returns 503 may have applied. Retrying it is safe.
Some parameter documentations has been truncated, see Models::Beta::Organization::ClaudeCode::ManagedSettings::ConfigurationUpdateParams for more details.
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/anthropic/resources/beta/organization/claude_code/managed_settings/configuration.rb', line 110 def update(params = {}) parsed, = Anthropic::Beta::Organization::ClaudeCode::ManagedSettings::ConfigurationUpdateParams.dump_request(params) header_params = {betas: "anthropic-beta"} @client.request( qualifiers: {beta: "true"}, span_name: Anthropic::Internal::Tracing::SpanName::ORGANIZATION_CLAUDE_CODE_MANAGED_SETTINGS_CONFIGURATION_UPDATE, span_route: "/v1/organizations/claude_code/managed_settings/configuration", method: :post, path: "v1/organizations/claude_code/managed_settings/configuration", headers: parsed.slice(*header_params.keys).transform_keys(header_params), body: parsed.except(*header_params.keys), model: Anthropic::Beta::Organization::ClaudeCode::ManagedSettings::BetaClaudeCodeManagedSettingsConfiguration, options: { extra_headers: {"anthropic-beta" => "ce-claude-code-managed-settings-2026-10-06"}, ** } ) end |