Assign Permission To Role
Assign a permission to a role.
The client supplies the permission slug; the server resolves the
Permission row and attaches it to the role. Idempotent: re-assigning an
already-held permission is a no-op that still returns 201.
Returns 404 when the role or the permission slug does not exist. Managing roles is not exposed to API keys.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
Request body for POST /api/roles/{id}/permissions.
The client supplies only the permission slug; the server resolves the Permission row and attaches it to the role. Extra fields are forbidden so that callers receive a 422 rather than silent discard on typos.