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

Request

  • Base URL
    https://api.multigest.pt (the document declares no server; this is the origin it was published from)
  • URL
    https://api.multigest.pt/api/users/{user_id}/permissions
  • Auth
    API key in header x-api-token and API key in header x-origin-verify

Path parameters

user_idinteger required

Headers

x-api-tokenstring nullable

Request body

permission_idsinteger[] required
grant_privileged_roleboolean

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 21 revisions of this API.