Switch an attribute value for the current user
Switches a user attribute value for the calling user. The switch then drives dynamic shared extensions, access filters and connection environment routing exactly as an assigned value would.
To change what values a user can switch to, use the Set switchable values endpoint instead.
Allowed values
The calling user can only successfully switch if values are already provisioned, either by listing them inselectable_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
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Body
The user attribute definition to switch.
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
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.
3001 - 512Response
The caller's switchable attributes after the change
Attributes the calling user can switch. Empty when nothing is provisioned for them. An Organization Admin receives every attribute with allow_any_value: true.

