Class UserProfileCreateParams.Body

  • All Implemented Interfaces:

    
    public final class UserProfileCreateParams.Body
    
                        

    The settings for a new user profile.

    Each request creates a new profile, even when another profile already has the same values.

    • Constructor Detail

    • Method Detail

      • 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-24 and user-profiles-2026-08-18 beta headers; without one of them, send external_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-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.

      • externalUserOnboardedAt

         final Optional<OffsetDateTime> externalUserOnboardedAt()

        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.

      • 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_type passthrough), that company's name where known. Maximum 255 characters.

      • _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.

      • _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.

      • _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.

      • 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.