Update User Role
POST https://{{base_url}}/v3/stacks/users/roles
The Update User Role API Request updates the roles of an existing user account. This API Request will override the existing roles assigned to a user. For example, we have an existing user with the Developer
role, and if you execute this API request with Content Manager
role, the user role will lose Developer
rights and the user role be updated to just Content Manager
.
To use the API Request, you will need to authenticate yourself either with a Management Token (highly recommended) or an Authtoken.Â
Read more about it in Authentication.
For more information, refer to the Update User Role API Reference document
Request Body
{"users"=>{"user_uid"=>["role_uid1", "role_uid2"]}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
api_key | string | Enter the API key of your stack | |
authtoken | string | Enter your authtoken | |
Content-Type | string |