Set Permissions
PUT/v1/permissions/user/:userId
Replace the target user's entire permission set with the submitted array. Omitted grants are revoked, and the user must sign in again for the changed grants to take effect.
Requires users.write.
Request and response fields at a glance
- Path parameters:
userId(integer, required). - Request body (application/json):
permissions(array, required). - 200 response (application/json):
message(string, required),userId(number, required).