Permissions
Returns every permission known by the authorization service, including the permission group it belongs to.
Requires an account with administrative privileges (administrator or service account).
Permissions list
Unauthorized
Forbidden
Internal Server Error
GET /api/permissions HTTP/1.1
Accept: */*
{
"data": [
{
"group": {
"id": 3,
"name": "data_dictionary"
},
"id": 42,
"name": "view_data_structure"
}
]
}Creates a custom permission.
Requires administrator access.
The permission name must start with the configured custom prefix. Names without the prefix are rejected with 422.
Permission names are unique: sending an existing name returns 422 with a "taken" error on name.
The response includes a Location header pointing at the newly created permission.
The group field is not present in the 201 response, because the association is not preloaded after the insert. It is present on subsequent show or index responses.
Payload for creating a permission.
The name must start with the configured custom prefix. Names without the prefix are rejected with 422, even if the rest of the payload is valid.
Permission created
Unauthorized
Forbidden
Unprocessable Entity
Internal Server Error
POST /api/permissions HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 76
{
"permission": {
"name": "custom_view_data_structure",
"permission_group_id": 3
}
}{
"data": {
"id": 42,
"name": "view_data_structure"
}
}Returns the specified permission together with its permission group.
Requires an account with administrative privileges (administrator or service account).
Permission ID.
Permission detail
Unauthorized
Forbidden
Not found
Internal Server Error
GET /api/permissions/{id} HTTP/1.1
Accept: */*
{
"data": {
"id": 42,
"name": "view_data_structure"
}
}Permanently deletes the specified permission.
Requires administrator access.
Permission ID.
Permission deleted
No content
Unauthorized
Forbidden
Not found
Internal Server Error
DELETE /api/permissions/{id} HTTP/1.1
Accept: */*
No content
Last updated