Class: Anthropic::Models::Beta::UserProfileUpdateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::UserProfileUpdateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/anthropic/models/beta/user_profile_update_params.rb,
sig/anthropic/models/beta/user_profile_update_params.rbs
Overview
Defined Under Namespace
Modules: AccessType
Constant Summary
Constants included from Internal::Type::RequestParameters
Internal::Type::RequestParameters::Anthropic
Instance Attribute Summary collapse
-
#access_type ⇒ Symbol, ...
How the platform uses the API on behalf of the entity this profile represents.
-
#betas ⇒ Array<String, Symbol, Anthropic::Models::AnthropicBeta>?
Optional header to specify the beta version(s) you want to use.
-
#external_id ⇒ String?
If present, replaces the stored external_id.
-
#external_user_details ⇒ Anthropic::Models::Beta::BetaUserProfileExternalUserDetailsParams?
Details about the entity this profile represents, as the platform states them.
-
#external_user_onboarded_at ⇒ Time?
A timestamp in RFC 3339 format.
-
#metadata ⇒ Hash{Symbol=>String}?
Key-value pairs to merge into the stored metadata.
-
#name ⇒ String?
If present, replaces the stored name.
- #user_profile_id ⇒ String
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(user_profile_id:, access_type: nil, external_id: nil, external_user_details: nil, external_user_onboarded_at: nil, metadata: nil, name: nil, betas: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see UserProfileUpdateParams for more details.
- #to_hash ⇒ {
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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_id: nil, external_user_details: nil, external_user_onboarded_at: nil, metadata: nil, name: nil, betas: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see Anthropic::Models::Beta::UserProfileUpdateParams for more details.
|
|
# File 'lib/anthropic/models/beta/user_profile_update_params.rb', line 72
|
Instance Attribute Details
#access_type ⇒ Symbol, ...
How the platform uses the API on behalf of the entity this profile represents.
application: the platform sells a product that uses the API behind the scenes,
and the profile represents an individual end-user of that product.
passthrough: the platform resells raw inference, and the profile identifies
the resold-to company.
24 |
# File 'lib/anthropic/models/beta/user_profile_update_params.rb', line 24 optional :access_type, enum: -> { Anthropic::Beta::UserProfileUpdateParams::AccessType }, nil?: true |
#betas ⇒ Array<String, Symbol, Anthropic::Models::AnthropicBeta>?
Optional header to specify the beta version(s) you want to use.
70 |
# File 'lib/anthropic/models/beta/user_profile_update_params.rb', line 70 optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] } |
#external_id ⇒ String?
If present, replaces the stored external_id. Omit to leave unchanged. Maximum
255 characters. Accepted under the user-profiles-2026-03-24 and
user-profiles-2026-08-18 beta headers; under user-profiles-2026-09-04 send
external_user_details.reference_id instead.
33 |
# File 'lib/anthropic/models/beta/user_profile_update_params.rb', line 33 optional :external_id, String, nil?: true |
#external_user_details ⇒ Anthropic::Models::Beta::BetaUserProfileExternalUserDetailsParams?
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. Accepted under the
user-profiles-2026-09-04 beta header only.
42 |
# File 'lib/anthropic/models/beta/user_profile_update_params.rb', line 42 optional :external_user_details, -> { Anthropic::Beta::BetaUserProfileExternalUserDetailsParams } |
#external_user_onboarded_at ⇒ Time?
A timestamp in RFC 3339 format
48 |
# File 'lib/anthropic/models/beta/user_profile_update_params.rb', line 48 optional :external_user_onboarded_at, Time |
#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.
57 |
# File 'lib/anthropic/models/beta/user_profile_update_params.rb', line 57 optional :metadata, Anthropic::Internal::Type::HashOf[String] |
#name ⇒ String?
If present, replaces the stored name. Omit to leave unchanged. Maximum 255 characters.
64 |
# File 'lib/anthropic/models/beta/user_profile_update_params.rb', line 64 optional :name, String, nil?: true |
#user_profile_id ⇒ String
14 |
# File 'lib/anthropic/models/beta/user_profile_update_params.rb', line 14 required :user_profile_id, String |
Instance Method Details
#to_hash ⇒ {
61 |
# File 'sig/anthropic/models/beta/user_profile_update_params.rbs', line 61 def to_hash: -> { |