Skip to main content
PUT
Switch an attribute value for the current user

Allowed values

The calling user can only successfully switch if values are already provisioned, either by listing them in selectable_values or enabling allow_any_value. A single-valued attribute accepts exactly one value. A multi-valued attribute accepts any subset of up to 300 values.

Authorizations

Authorization
string
header
required

Can be either an Organization API Key or Personal Access Token (PAT).

Include in the Authorization header as: Bearer YOUR_TOKEN

Body

application/json
user_attribute_id
string
required

The user attribute definition to switch.

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

values
string[]
required

Values this user or group can switch the attribute to, validated against the attribute type.

Numbers are sent as strings to preserve precision beyond 2^53. At most 300 values of up to 512 characters each.

Maximum array length: 300
Required string length: 1 - 512
Example:

Response

The caller's switchable attributes after the change

records
object[]
required

Attributes the calling user can switch. Empty when nothing is provisioned for them. An Organization Admin receives every attribute with allow_any_value: true.