Skip to main content
POST
Assign Permission To Role

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

role_id
string
required

Body

application/vnd.api+json

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.

slug
string
required

Response

Successful Response

data
JsonApiResource[RoleAttributes] · object
required
included
any[] | null
meta
Meta · object | null