Class: Anthropic::Models::UserProfileUpdateParams

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

Overview

See Also:

  • Anthropic::Resources::UserProfiles#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(user_profile_id:, access_type: nil, external_user_details: nil, metadata: nil, name: nil, workspace_id: nil, request_options: {}) ⇒ UserProfileUpdateParams

Some parameter documentations has been truncated, see Anthropic::Models::UserProfileUpdateParams for more details.

Parameters:

  • user_profile_id (String) —

    The ID of the user profile to update (uprof_...).

  • access_type (Symbol, Anthropic::Models::UserProfileAccessType, nil) (defaults to: nil) —

    If present, replaces the stored access type. Omit to leave unchanged.

  • external_user_details (Anthropic::Models::UserProfileExternalUserDetailsParams) (defaults to: nil) —

    Details about the entity this profile represents, as the platform states them. E

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

    Key-value pairs to merge into the stored metadata. Keys provided overwrite exist

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

    If present, replaces the stored name. Omit to leave unchanged. Maximum 255 chara

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

    Optional header to select the Workspace for this request. The value is a Workspa

  • request_options (Anthropic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})
  • user_profile_id: (String)
  • access_type: (Anthropic::Models::user_profile_access_type, nil) (defaults to: nil)
  • external_user_details: (Anthropic::UserProfileExternalUserDetailsParams) (defaults to: nil)
  • metadata: (::Hash[Symbol, String]) (defaults to: nil)
  • name: (String, nil) (defaults to: nil)
  • workspace_id: (String) (defaults to: nil)
  • request_options: (Anthropic::request_opts) (defaults to: {})


# File 'lib/anthropic/models/user_profile_update_params.rb', line 59

Instance Attribute Details

#access_type ⇒ Symbol, ...

If present, replaces the stored access type. Omit to leave unchanged.

Parameters:

  • value (Anthropic::Models::user_profile_access_type, nil)

Returns:



20
# File 'lib/anthropic/models/user_profile_update_params.rb', line 20

optional :access_type, enum: -> { Anthropic::UserProfileAccessType }, nil?: true

#external_user_details ⇒ Anthropic::Models::UserProfileExternalUserDetailsParams?

Details about the entity this profile represents, as the platform states them. Each field sent replaces the stored value; omit a field to leave it unchanged. Once set, a value cannot be cleared and null is rejected. Not accepted under the legacy user-profiles-2026-03-24 and user-profiles-2026-08-18 beta headers.



30
# File 'lib/anthropic/models/user_profile_update_params.rb', line 30

optional :external_user_details, -> { Anthropic::UserProfileExternalUserDetailsParams }

#metadata ⇒ Hash{Symbol=>String}?

Key-value pairs to merge into the stored metadata. Keys provided overwrite existing values. To remove a key, set its value to an empty string. Keys not provided are left unchanged. Maximum 16 keys, with keys up to 64 characters and values up to 512 characters.

Parameters:

  • (::Hash[Symbol, String])

Returns:

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


39
# File 'lib/anthropic/models/user_profile_update_params.rb', line 39

optional :metadata, Anthropic::Internal::Type::HashOf[String]

#name ⇒ String?

If present, replaces the stored name. Omit to leave unchanged. Maximum 255 characters.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


46
# File 'lib/anthropic/models/user_profile_update_params.rb', line 46

optional :name, String, nil?: true

#user_profile_id ⇒ String

The ID of the user profile to update (uprof_...).

Parameters:

  • value (String)

Returns:

  • (String)


14
# File 'lib/anthropic/models/user_profile_update_params.rb', line 14

required :user_profile_id, String

#workspace_id ⇒ String?

Optional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy).

Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.

Parameters:

  • (String)

Returns:

  • (String, nil)


57
# File 'lib/anthropic/models/user_profile_update_params.rb', line 57

optional :workspace_id, String

Instance Method Details

#to_hash ⇒ { user_profile_id: String, access_type: Anthropic::Models::user_profile_access_type?, external_user_details: Anthropic::UserProfileExternalUserDetailsParams, metadata: ::Hash[Symbol, String], name: String?, workspace_id: String, request_options: Anthropic::RequestOptions }

Returns:



48
49
50
51
52
53
54
55
56
# File 'sig/anthropic/models/user_profile_update_params.rbs', line 48

def to_hash: -> {
  user_profile_id: String,
  access_type: Anthropic::Models::user_profile_access_type?,
  external_user_details: Anthropic::UserProfileExternalUserDetailsParams,
  metadata: ::Hash[Symbol, String],
  name: String?,
  workspace_id: String,
  request_options: Anthropic::RequestOptions
}