Blesyum Core

roles

5 uç · /api/v1/roles

İstek örnekleri ucun GERÇEK metodu ve yolundan üretilir. 5 ucun elle doğrulanmış gövde örneği henüz yok; o uçlarda iskelet gövdesizdir — uydurma bir alan yazmıyoruz.

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ı?