Skip to main content
GET
/
api
/
v1
/
roles
/
{role_name}
/
actions
List actions allowed for a role
curl --request GET \
  --url https://services.pref.rio/heimdall-admin/api/v1/roles/{role_name}/actions \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": 1,
    "name": "user:read",
    "description": "Read user information"
  },
  {
    "id": 2,
    "name": "user:list",
    "description": "List users in the system"
  }
]

Authorizations

Authorization
string
header
required

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

Path Parameters

role_name
string
required

Response

List of role actions retrieved successfully

id
integer
required

Unique identifier for the action

Example:

1

name
string
required

Action name

Example:

"user:read"

description
string | null

Action description

Example:

"Read user information"