Class UserProfileCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class UserProfileCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
accessType
final UserProfileCreateParams.Body.Builder accessType(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.
-
accessType
final UserProfileCreateParams.Body.Builder accessType(JsonField<UserProfileCreateParams.AccessType> accessType)
Sets Builder.accessType to an arbitrary JSON value.
You should usually call Builder.accessType with a well-typed AccessType value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
externalId
final UserProfileCreateParams.Body.Builder externalId(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.
-
externalId
final UserProfileCreateParams.Body.Builder externalId(Optional<String> externalId)
Alias for calling Builder.externalId with
externalId.orElse(null).
-
externalId
final UserProfileCreateParams.Body.Builder externalId(JsonField<String> externalId)
Sets Builder.externalId to an arbitrary JSON value.
You should usually call Builder.externalId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
externalUserDetails
final UserProfileCreateParams.Body.Builder externalUserDetails(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.
-
externalUserDetails
final UserProfileCreateParams.Body.Builder externalUserDetails(JsonField<BetaUserProfileExternalUserDetailsParams> externalUserDetails)
Sets Builder.externalUserDetails to an arbitrary JSON value.
You should usually call Builder.externalUserDetails with a well-typed BetaUserProfileExternalUserDetailsParams value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
externalUserOnboardedAt
final UserProfileCreateParams.Body.Builder externalUserOnboardedAt(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.
-
externalUserOnboardedAt
final UserProfileCreateParams.Body.Builder externalUserOnboardedAt(JsonField<OffsetDateTime> externalUserOnboardedAt)
Sets Builder.externalUserOnboardedAt to an arbitrary JSON value.
You should usually call Builder.externalUserOnboardedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
metadata
final UserProfileCreateParams.Body.Builder metadata(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.
-
metadata
final UserProfileCreateParams.Body.Builder metadata(JsonField<UserProfileCreateParams.Metadata> metadata)
Sets Builder.metadata to an arbitrary JSON value.
You should usually call Builder.metadata with a well-typed Metadata value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final UserProfileCreateParams.Body.Builder name(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.
-
name
final UserProfileCreateParams.Body.Builder name(Optional<String> name)
Alias for calling Builder.name with
name.orElse(null).
-
name
final UserProfileCreateParams.Body.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final UserProfileCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final UserProfileCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final UserProfileCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final UserProfileCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final UserProfileCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final UserProfileCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-