Skip to main content
PUT
Assign a user group to a user

Authorizations

x-api-key
string
header
required

Send the API key in the x-api-key header.

Path Parameters

userId
string
required

Platform user id. Newer ids are ovuid-<uuid>; legacy users may have bare (e.g. numeric) ids.

Minimum string length: 1
Example:

"ovuid-aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa"

userGroupId
string
required

Id of the user group, as returned by GET /v1/user-group/list. User group id, a stable text key such as conversations_full_access.

Minimum string length: 1
Example:

"conversations_full_access"

Response

User group assigned to the user

userId
string
required

Platform user id. Newer ids are ovuid-<uuid>; legacy users may have bare (e.g. numeric) ids.

Minimum string length: 1
Example:

"ovuid-2b6d4d8e-9f1a-4b2c-8d4e-5f6011223344"

userGroupId
string
required

User group id, a stable text key such as conversations_full_access.

Minimum string length: 1
Example:

"conversations_full_access"

assigned
boolean
required

True when the user belongs to the group after the call

Example:

true