Replace user roles

Replaces the roles assigned to the specified user.

Requires the Edit permission on the Users entity (edit:user). See Identity Exposure Permissions.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
^[0-9]+$

Specifies the ID of the user.

Body Params

User roles

roles
array of integers
required

Specifies the IDs of the roles to assign to the user. The list replaces the user's current roles.

roles*
Responses

401

Returned if the API key specified in your request is invalid.

404

Returned if the specified user could not be found.

500

Returned if an internal error occurred.

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json