Blesyum Core

roles

5 endpoints · /api/v1/roles

Request examples are generated from each endpoint's REAL method and path. 5 endpoints have no hand-verified body example yet; their skeleton has no body — we do not invent field names.

GET/api/v1/roles

Roles in the active tenant — requires core.roles.view (default-deny).

Oturum
İstek
curl -X GET "https://api.blesyum.com/api/v1/roles" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
POST/api/v1/roles

Create a custom role (IAM-25) — requires core.roles.manage.

Oturum
İstek
curl -X POST "https://api.blesyum.com/api/v1/roles" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
PATCH/api/v1/roles/{id}

Update a custom role's name/permissions (IAM-25) — requires core.roles.manage.

OturumYol parametresi: id
İstek
curl -X PATCH "https://api.blesyum.com/api/v1/roles/<id>" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
DELETE/api/v1/roles/{id}

Delete a custom role (IAM-25) — requires core.roles.manage.

OturumYol parametresi: id
İstek
curl -X DELETE "https://api.blesyum.com/api/v1/roles/<id>" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
POST/api/v1/roles/{id}/clone

Clone a role into a new tenant role (AUTH-04).

OturumYol parametresi: id
İstek
curl -X POST "https://api.blesyum.com/api/v1/roles/<id>/clone" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
Bu sayfa işine yaradı mı?