For the complete documentation index, see llms.txt. This page is also available as Markdown.

Permissions

List permissions

get

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

Responses
200

Permissions list

application/json
get/api/permissions
GET /api/permissions HTTP/1.1
Accept: */*
{
  "data": [
    {
      "group": {
        "id": 3,
        "name": "data_dictionary"
      },
      "id": 42,
      "name": "view_data_structure"
    }
  ]
}

Create permission

post

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.

Body

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.

Responses
201

Permission created

application/json
post/api/permissions
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"
  }
}

Get permission

get

Returns the specified permission together with its permission group.

Requires an account with administrative privileges (administrator or service account).

Path parameters
idintegerRequired

Permission ID.

Responses
200

Permission detail

application/json
get/api/permissions/{id}
GET /api/permissions/{id} HTTP/1.1
Accept: */*
{
  "data": {
    "id": 42,
    "name": "view_data_structure"
  }
}

Delete permission

delete

Permanently deletes the specified permission.

Requires administrator access.

Path parameters
idintegerRequired

Permission ID.

Responses
204

Permission deleted

No content

delete/api/permissions/{id}
DELETE /api/permissions/{id} HTTP/1.1
Accept: */*

No content

Last updated