Class UserProfileCreateParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class UserProfileCreateParams implements Params
Create User Profile
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUserProfileCreateParams.BuilderA builder for UserProfileCreateParams.
public final classUserProfileCreateParams.BodyThe settings for a new user profile.
Each request creates a new profile, even when another profile already has the same values.
public final classUserProfileCreateParams.AccessTypeHow 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.public final classUserProfileCreateParams.MetadataFree-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.
-
Method Summary
Modifier and Type Method Description final Optional<List<AnthropicBeta>>betas()Optional header to specify the beta version(s) you want to use. final Optional<String>workspaceId()Optional header to select the Workspace for this request. final Optional<UserProfileCreateParams.AccessType>accessType()How the platform uses the API for this entity. final Optional<String>externalId()Platform's own identifier for this user. final Optional<BetaUserProfileExternalUserDetailsParams>externalUserDetails()Details about the entity this profile represents, as the platform states them. final Optional<OffsetDateTime>externalUserOnboardedAt()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.final Optional<UserProfileCreateParams.Metadata>metadata()Free-form key-value data to attach to this user profile. final Optional<String>name()Optional for all profiles. final JsonField<UserProfileCreateParams.AccessType>_accessType()Returns the raw JSON value of accessType. final JsonField<String>_externalId()Returns the raw JSON value of externalId. final JsonField<BetaUserProfileExternalUserDetailsParams>_externalUserDetails()Returns the raw JSON value of externalUserDetails. final JsonField<OffsetDateTime>_externalUserOnboardedAt()Returns the raw JSON value of externalUserOnboardedAt. final JsonField<UserProfileCreateParams.Metadata>_metadata()Returns the raw JSON value of metadata. final JsonField<String>_name()Returns the raw JSON value of name. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final UserProfileCreateParams.BuildertoBuilder()final UserProfileCreateParams.Body_body()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. SpanData_spanData()The data for the OpenTelemetry span of a call to the method with these parameters. Booleanequals(Object other)IntegerhashCode()StringtoString()final static UserProfileCreateParamsnone()final static UserProfileCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of UserProfileCreateParams. -
-
Method Detail
-
betas
final Optional<List<AnthropicBeta>> betas()
Optional header to specify the beta version(s) you want to use.
-
workspaceId
final Optional<String> workspaceId()
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.
-
accessType
final Optional<UserProfileCreateParams.AccessType> accessType()
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.
-
externalId
final Optional<String> externalId()
Platform's own identifier for this user. Not enforced unique. Maximum 255 characters. Legacy field, accepted only under the
user-profiles-2026-03-24anduser-profiles-2026-08-18beta headers; without one of them, sendexternal_user_details.reference_id.
-
externalUserDetails
final Optional<BetaUserProfileExternalUserDetailsParams> externalUserDetails()
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-24anduser-profiles-2026-08-18beta headers, which take the top-levelexternal_id(and, underuser-profiles-2026-08-18,external_user_onboarded_at) instead.
-
externalUserOnboardedAt
final Optional<OffsetDateTime> externalUserOnboardedAt()
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. Must be a complete timestamp no more than 1 minute in the future. Optional. Legacy field, accepted only under theuser-profiles-2026-08-18beta header; without a legacy header, sendexternal_user_details.onboarded_at.
-
metadata
final Optional<UserProfileCreateParams.Metadata> metadata()
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.
-
name
final Optional<String> name()
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_typepassthrough), that company's name where known. Maximum 255 characters.
-
_accessType
final JsonField<UserProfileCreateParams.AccessType> _accessType()
Returns the raw JSON value of accessType.
Unlike accessType, this method doesn't throw if the JSON field has an unexpected type.
-
_externalId
final JsonField<String> _externalId()
Returns the raw JSON value of externalId.
Unlike externalId, this method doesn't throw if the JSON field has an unexpected type.
-
_externalUserDetails
final JsonField<BetaUserProfileExternalUserDetailsParams> _externalUserDetails()
Returns the raw JSON value of externalUserDetails.
Unlike externalUserDetails, this method doesn't throw if the JSON field has an unexpected type.
-
_externalUserOnboardedAt
final JsonField<OffsetDateTime> _externalUserOnboardedAt()
Returns the raw JSON value of externalUserOnboardedAt.
Unlike externalUserOnboardedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_metadata
final JsonField<UserProfileCreateParams.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final UserProfileCreateParams.Builder toBuilder()
-
_body
final UserProfileCreateParams.Body _body()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
_spanData
SpanData _spanData()
The data for the OpenTelemetry span of a call to the method with these parameters.
-
none
final static UserProfileCreateParams none()
-
builder
final static UserProfileCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of UserProfileCreateParams.
-
-
-
-