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

Path parameters

role_idinteger required

Headers

x-api-tokenstring nullable

Request body

permission_idsinteger[] required
grant_privileged_roleboolean

Response

Successful Response

{"stackTrail":"paths:/api/roles/{role_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.