Saltar al contenido principal
GET
/
v1
/
role
/
{role_id}
Get role details
import requests

url = "https://api.diga.io/v1/role/{role_id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "permissions": [
    "<string>"
  ]
}

Autorizaciones

Authorization
string
header
requerido

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

Parámetros de ruta

role_id
string<uuid>
requerido

Respuesta

Successful Response

Schema for role information including associated permissions.

id
string<uuid>
requerido

Unique identifier for the role

name
string
requerido

Name of the role (e.g., 'admin', 'member')

permissions
string[]
requerido

List of permission strings associated with this role