Permissions
Set all permissions for a user
Replace all user-level permissions for a user with the given list.
This is the console's "Gerir Permissões" save, and it is a SET-REPLACE that re-submits everything the user already holds. That is why the bar is on the DELTA (app/db/permissions.py): under the old per-id refusal, a user who already carried admin could never be saved again — every save re-sent that id and every save was 403'd, including saves that only added an ordinary permission.
put/api/users/{user_id}/permissions
Path parameters
user_idinteger required
Headers
x-api-tokenstring nullable
Request body
Response
Successful Response
{"stackTrail":"paths:/api/users/{user_id}/permissions:put:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}
Changes
No recorded changes to this endpoint across all 1 revision of this API.