Class UserProfileCreateParams.Body
-
- All Implemented Interfaces:
public final class UserProfileCreateParams.BodyThe settings for a new user profile.
Each request creates a new profile, even when another profile already has the same values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUserProfileCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final Optional<UserProfileAccessType>accessType()How the platform uses the API for this entity. final Optional<UserProfileExternalUserDetailsParams>externalUserDetails()Details about the entity this profile represents, as the platform states them. 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<UserProfileAccessType>_accessType()Returns the raw JSON value of accessType. final JsonField<UserProfileExternalUserDetailsParams>_externalUserDetails()Returns the raw JSON value of externalUserDetails. 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>_additionalProperties()final UserProfileCreateParams.Body.BuildertoBuilder()final UserProfileCreateParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static UserProfileCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
accessType
final Optional<UserProfileAccessType> 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.
-
externalUserDetails
final Optional<UserProfileExternalUserDetailsParams> 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.
-
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<UserProfileAccessType> _accessType()
Returns the raw JSON value of accessType.
Unlike accessType, this method doesn't throw if the JSON field has an unexpected type.
-
_externalUserDetails
final JsonField<UserProfileExternalUserDetailsParams> _externalUserDetails()
Returns the raw JSON value of externalUserDetails.
Unlike externalUserDetails, 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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final UserProfileCreateParams.Body.Builder toBuilder()
-
validate
final UserProfileCreateParams.Body validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static UserProfileCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
-
-
-
-