Class: Anthropic::Models::Beta::UserProfileCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::UserProfileCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/anthropic/models/beta/user_profile_create_params.rb,
sig/anthropic/models/beta/user_profile_create_params.rbs
Overview
Defined Under Namespace
Modules: AccessType
Instance Attribute Summary collapse
-
#access_type ⇒ Symbol, ...
How the platform uses the API for this entity.
-
#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?
Optional header to specify the beta version(s) you want to use.
-
#external_id ⇒ String?
Platform's own identifier for this user.
-
#external_user_details ⇒ Anthropic::Models::Beta::BetaUserProfileExternalUserDetailsParams?
Details about the entity this profile represents, as the platform states them.
-
#external_user_onboarded_at ⇒ Time?
When the entity this profile represents opened its account with the platform, in RFC 3339 format: for an
applicationprofile, when the end-user signed up; for apassthroughprofile, when the company became the platform's customer. -
#metadata ⇒ Hash{Symbol=>String}?
Free-form key-value data to attach to this user profile.
-
#name ⇒ String?
Optional for all profiles.
-
#workspace_id ⇒ String?
Optional header to select the Workspace for this request.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(access_type: nil, external_id: nil, external_user_details: nil, external_user_onboarded_at: nil, metadata: nil, name: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ UserProfileCreateParams
constructor
Some parameter documentations has been truncated, see UserProfileCreateParams for more details.
- #to_hash ⇒ { access_type: Anthropic::Models::Beta::UserProfileCreateParams::access_type, external_id: String?, external_user_details: Anthropic::Beta::BetaUserProfileExternalUserDetailsParams, external_user_onboarded_at: Time, metadata: ::Hash[Symbol, String], name: String?, betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions }
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(access_type: nil, external_id: nil, external_user_details: nil, external_user_onboarded_at: nil, metadata: nil, name: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ UserProfileCreateParams
Some parameter documentations has been truncated, see Anthropic::Models::Beta::UserProfileCreateParams for more details.
|
|
# File 'lib/anthropic/models/beta/user_profile_create_params.rb', line 84
|
Instance Attribute Details
#access_type ⇒ Symbol, ...
How the platform uses the API for this entity. application (default): the
profile represents an individual end-user of the platform's product.
passthrough: the profile identifies a company the platform resells Claude
access to.
18 |
# File 'lib/anthropic/models/beta/user_profile_create_params.rb', line 18 optional :access_type, enum: -> { Anthropic::Beta::UserProfileCreateParams::AccessType } |
#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?
Optional header to specify the beta version(s) you want to use.
71 |
# File 'lib/anthropic/models/beta/user_profile_create_params.rb', line 71 optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] } |
#external_id ⇒ String?
Platform's own identifier for this user. Not enforced unique. Maximum 255
characters. Legacy field, accepted only under the user-profiles-2026-03-24 and
user-profiles-2026-08-18 beta headers; without one of them, send
external_user_details.reference_id.
27 |
# File 'lib/anthropic/models/beta/user_profile_create_params.rb', line 27 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.
Every field is optional. Not accepted under the legacy
user-profiles-2026-03-24 and user-profiles-2026-08-18 beta headers, which
take the top-level external_id (and, under user-profiles-2026-08-18,
external_user_onboarded_at) instead.
37 |
# File 'lib/anthropic/models/beta/user_profile_create_params.rb', line 37 optional :external_user_details, -> { Anthropic::Beta::BetaUserProfileExternalUserDetailsParams } |
#external_user_onboarded_at ⇒ Time?
When the entity this profile represents opened its account with the platform, in
RFC 3339 format: for an application profile, when the end-user signed up; for
a passthrough profile, when the company became the platform's customer. Must
be a complete timestamp no more than 1 minute in the future. Optional. Legacy
field, accepted only under the user-profiles-2026-08-18 beta header; without a
legacy header, send external_user_details.onboarded_at.
48 |
# File 'lib/anthropic/models/beta/user_profile_create_params.rb', line 48 optional :external_user_onboarded_at, Time |
#metadata ⇒ Hash{Symbol=>String}?
Free-form key-value data to attach to this user profile. Maximum 16 keys, with keys up to 64 characters and values up to 512 characters. Values must be non-empty strings.
56 |
# File 'lib/anthropic/models/beta/user_profile_create_params.rb', line 56 optional :metadata, Anthropic::Internal::Type::HashOf[String] |
#name ⇒ String?
Optional for all profiles. Real-world name of the entity this profile represents
(company or individual); for a company the platform resells Claude access to
(access_type passthrough), that company's name where known. Maximum 255
characters.
65 |
# File 'lib/anthropic/models/beta/user_profile_create_params.rb', line 65 optional :name, String, nil?: true |
#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.
82 |
# File 'lib/anthropic/models/beta/user_profile_create_params.rb', line 82 optional :workspace_id, String |
Instance Method Details
#to_hash ⇒ { access_type: Anthropic::Models::Beta::UserProfileCreateParams::access_type, external_id: String?, external_user_details: Anthropic::Beta::BetaUserProfileExternalUserDetailsParams, external_user_onboarded_at: Time, metadata: ::Hash[Symbol, String], name: String?, betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions }
67 68 69 70 71 72 73 74 75 76 77 |
# File 'sig/anthropic/models/beta/user_profile_create_params.rbs', line 67
def to_hash: -> {
access_type: Anthropic::Models::Beta::UserProfileCreateParams::access_type,
external_id: String?,
external_user_details: Anthropic::Beta::BetaUserProfileExternalUserDetailsParams,
external_user_onboarded_at: Time,
metadata: ::Hash[Symbol, String],
name: String?,
betas: ::Array[Anthropic::Models::anthropic_beta],
workspace_id: String,
request_options: Anthropic::RequestOptions
}
|