Permissions

Set all permissions for a role

Replace all permissions for a role with the given list.

The console's role editor. Delta-based like everything else, which is what makes Administrador and socio editable again: they carry the legacy admin row, the dialog resubmits it on every save, and the old per-id refusal turned that into a permanent 403 on roles whose whole purpose is granting it.

put/api/roles/{role_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/roles/{role_id}/permissions
  • Auth
    API key in header x-api-token and API key in header x-origin-verify

Path parameters

role_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.