Class: Anthropic::Models::Beta::Organization::WorkspaceUpdateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/anthropic/models/beta/organization/workspace_update_params.rb,
sig/anthropic/models/beta/organization/workspace_update_params.rbs

Overview

See Also:

  • Anthropic::Resources::Beta::Organization::Workspaces#update

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(workspace_id:, data_residency: nil, display_color: nil, external_key_id: nil, inference_data_privacy: nil, name: nil, tags: nil, user_profile_id: nil, betas: nil, request_options: {}) ⇒ WorkspaceUpdateParams

Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::WorkspaceUpdateParams for more details.

Parameters:

  • workspace_id (String)
  • data_residency (Anthropic::Models::Beta::Organization::BetaDataResidencyUpdateConfig, nil) (defaults to: nil) —

    Data residency configuration for the workspace.

  • display_color (String) (defaults to: nil) —

    Hex color code representing the Workspace in the Anthropic Console.

  • external_key_id (String) (defaults to: nil) —

    ID of the customer-managed encryption key (CMEK) configuration to use for this

  • inference_data_privacy (Anthropic::Models::Beta::Organization::BetaInferenceDataPrivacyUpdateParam, nil) (defaults to: nil) —

    Changes to where the Workspace's retained inference data and transcript copies g

  • name (String) (defaults to: nil) —

    Name of the Workspace.

  • tags (Hash{Symbol=>String, nil}, nil) (defaults to: nil) —

    User-defined tags as string key-value pairs. Keys may not begin with anthropic

  • user_profile_id (String) (defaults to: nil) —

    ID of a user profile to attach to the Workspace. Every inference request through

  • betas (Array<Symbol, String, Anthropic::Models::AnthropicBeta>) (defaults to: nil) —

    Optional. Send efs-2026-10-01 in this header to use this endpoint's beta featu

  • request_options (Anthropic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})
  • workspace_id: (String)
  • data_residency: (Anthropic::Beta::Organization::BetaDataResidencyUpdateConfig, nil) (defaults to: nil)
  • display_color: (String) (defaults to: nil)
  • external_key_id: (String) (defaults to: nil)
  • inference_data_privacy: (Anthropic::Beta::Organization::BetaInferenceDataPrivacyUpdateParam, nil) (defaults to: nil)
  • name: (String) (defaults to: nil)
  • tags: (::Hash[Symbol, String?], nil) (defaults to: nil)
  • user_profile_id: (String) (defaults to: nil)
  • betas: (::Array[Anthropic::Models::anthropic_beta]) (defaults to: nil)
  • request_options: (Anthropic::request_opts) (defaults to: {})


# File 'lib/anthropic/models/beta/organization/workspace_update_params.rb', line 94

Instance Attribute Details

#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?

Optional. Send efs-2026-10-01 in this header to use this endpoint's beta features: additional parameters, accepted values and response fields.

Parameters:

  • (::Array[Anthropic::Models::anthropic_beta])

Returns:



92
# File 'lib/anthropic/models/beta/organization/workspace_update_params.rb', line 92

optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }

#data_residency ⇒ Anthropic::Models::Beta::Organization::BetaDataResidencyUpdateConfig?

Data residency configuration for the workspace.

Parameters:

  • value (Anthropic::Beta::Organization::BetaDataResidencyUpdateConfig, nil)

Returns:



21
22
23
24
25
# File 'lib/anthropic/models/beta/organization/workspace_update_params.rb', line 21

optional :data_residency,
-> {
  Anthropic::Beta::Organization::BetaDataResidencyUpdateConfig
},
nil?: true

#display_color ⇒ String?

Hex color code representing the Workspace in the Anthropic Console.

Parameters:

  • (String)

Returns:

  • (String, nil)


31
# File 'lib/anthropic/models/beta/organization/workspace_update_params.rb', line 31

optional :display_color, String

#external_key_id ⇒ String?

ID of the customer-managed encryption key (CMEK) configuration to use for this Workspace. Setting this field requires CMEK to be enabled for your organization. When set, data stored for this Workspace is encrypted with the referenced key. Create key configurations with the External Keys API. On Claude Platform on AWS the value for an AWS KMS key is the key's ARN, and your organization's own key must be a single-Region key in the same Region as the Workspace. If that key is outside the Workspace's AWS account, it can be attached only by updating an active Workspace. On that platform the key is validated against this Workspace when it is attached, so a key-policy problem is reported as an error on this request. This field is write-once: once a key is attached to a Workspace it cannot be detached or replaced. To rotate key material, rotate the underlying key on your cloud KMS; the external_key_id stays the same.

Parameters:

  • (String)

Returns:

  • (String, nil)


48
# File 'lib/anthropic/models/beta/organization/workspace_update_params.rb', line 48

optional :external_key_id, String

#inference_data_privacy ⇒ Anthropic::Models::Beta::Organization::BetaInferenceDataPrivacyUpdateParam?

Changes to where the Workspace's retained inference data and transcript copies go, and to whether Anthropic's human review applies. Requires the efs-2026-10-01 anthropic-beta value. An omitted member is unchanged. Cannot be null. An Admin API key can't set this field, because it doesn't belong to a user or a service account. Use an API key that belongs to one, or an OAuth token.

Parameters:

  • value (Anthropic::Beta::Organization::BetaInferenceDataPrivacyUpdateParam, nil)

Returns:



59
60
61
# File 'lib/anthropic/models/beta/organization/workspace_update_params.rb', line 59

optional :inference_data_privacy,
-> { Anthropic::Beta::Organization::BetaInferenceDataPrivacyUpdateParam },
nil?: true

#name ⇒ String?

Name of the Workspace.

Parameters:

  • (String)

Returns:

  • (String, nil)


67
# File 'lib/anthropic/models/beta/organization/workspace_update_params.rb', line 67

optional :name, String

#tags ⇒ Hash{Symbol=>String, nil}?

User-defined tags as string key-value pairs. Keys may not begin with anthropic.

Parameters:

  • value (::Hash[Symbol, String?], nil)

Returns:

  • (Hash{Symbol=>String, nil}, nil)


74
# File 'lib/anthropic/models/beta/organization/workspace_update_params.rb', line 74

optional :tags, Anthropic::Internal::Type::HashOf[String, nil?: true], nil?: true

#user_profile_id ⇒ String?

ID of a user profile to attach to the Workspace. Every inference request through the Workspace must then name this user profile; the API rejects a request that names none or a different one. Once set, it can't be replaced or removed (sending the same ID again changes nothing); only deleting the user profile clears it. It can't be set on a Workspace whose External Key isn't bound to this user profile. The default Workspace can't have a user profile.

Parameters:

  • (String)

Returns:

  • (String, nil)


85
# File 'lib/anthropic/models/beta/organization/workspace_update_params.rb', line 85

optional :user_profile_id, String

#workspace_id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


15
# File 'lib/anthropic/models/beta/organization/workspace_update_params.rb', line 15

required :workspace_id, String

Instance Method Details

#to_hash ⇒ { workspace_id: String, data_residency: Anthropic::Beta::Organization::BetaDataResidencyUpdateConfig?, display_color: String, external_key_id: String, inference_data_privacy: Anthropic::Beta::Organization::BetaInferenceDataPrivacyUpdateParam?, name: String, tags: ::Hash[Symbol, String?]?, user_profile_id: String, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions }

Returns:

  • ({ workspace_id: String, data_residency: Anthropic::Beta::Organization::BetaDataResidencyUpdateConfig?, display_color: String, external_key_id: String, inference_data_privacy: Anthropic::Beta::Organization::BetaInferenceDataPrivacyUpdateParam?, name: String, tags: ::Hash[Symbol, String?]?, user_profile_id: String, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions })


66
67
68
69
70
71
72
73
74
75
76
77
# File 'sig/anthropic/models/beta/organization/workspace_update_params.rbs', line 66

def to_hash: -> {
  workspace_id: String,
  data_residency: Anthropic::Beta::Organization::BetaDataResidencyUpdateConfig?,
  display_color: String,
  external_key_id: String,
  inference_data_privacy: Anthropic::Beta::Organization::BetaInferenceDataPrivacyUpdateParam?,
  name: String,
  tags: ::Hash[Symbol, String?]?,
  user_profile_id: String,
  betas: ::Array[Anthropic::Models::anthropic_beta],
  request_options: Anthropic::RequestOptions
}