Set user permissions (not implemented)
This endpoint is present in the API contract but does not currently apply permission changes.
This endpoint is present in the API contract but does not currently apply permission changes.
Do not use it in production. Use Create or Update User to change the stored role, or Set a user role for the supported role-change operation.
Parameters
Values in the path and query string.
appid path The application the user belongs to.
Example:your-app-id userid path The user the permissions would apply to.
Example:u-8842 JSON body
Send as application/json.
roles Required. An array of granular permission records to apply to the user, e.g. admin on one specific room while holding the "user" role at the application level. NOTE: as of this writing the server action that binds this form POST .../setroles does not yet apply it see that action's remarks.
{
"roles": [
"<roles>"
]
} Status codes
Every JSON response uses the API result envelope.
200 OK: request accepted, but no permission change is actually applied see NOTE above . ApiResult 400 BadRequest: the request body was not provided. ApiResult 403 Forbidden: request is not authorized with a valid token. ApiResult 500 Internal Server Error ApiResult