Product documentation
Permissions
RBAC permission catalog (SSO-1891).
Permissions
RBAC permission catalog (SSO-1891).
Base URL: https://api.stg.thoryn.org
Operations
| Method | Path | Summary | Scopes |
|---|---|---|---|
GET | /api/v1/permissions | Permissions List | tenant:roles.read |
POST | /api/v1/permissions | Permissions Create | tenant:roles.write |
GET | /api/v1/permissions/{id} | Permissions Get | tenant:roles.read |
DELETE | /api/v1/permissions/{id} | Permissions Delete | tenant:roles.write |
Operation details
GET /api/v1/permissions
Permissions List
- Operation ID:
permissionsList - Required scopes:
tenant:roles.read
Parameters:
| Name | In | Required | Type | Description |
|---|---|---|---|---|
limit | query | no | integer | |
cursor | query | no | string |
Responses:
| Status | Description | Body |
|---|---|---|
200 | OK | object |
401 | Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim. | Problem (problem+json) |
403 | Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path. | Problem (problem+json) |
POST /api/v1/permissions
Permissions Create
- Operation ID:
permissionsCreate - Required scopes:
tenant:roles.write
Request body (required): application/json → CreatePermissionRequest
Responses:
| Status | Description | Body |
|---|---|---|
200 | OK | object |
401 | Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim. | Problem (problem+json) |
403 | Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path. | Problem (problem+json) |
GET /api/v1/permissions/{id}
Permissions Get
- Operation ID:
permissionsGet - Required scopes:
tenant:roles.read
Parameters:
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string |
Responses:
| Status | Description | Body |
|---|---|---|
200 | OK | object |
401 | Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim. | Problem (problem+json) |
403 | Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path. | Problem (problem+json) |
DELETE /api/v1/permissions/{id}
Permissions Delete
- Operation ID:
permissionsDelete - Required scopes:
tenant:roles.write
Parameters:
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id | path | yes | string |
Responses:
| Status | Description | Body |
|---|---|---|
200 | OK | object |
401 | Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim. | Problem (problem+json) |
403 | Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path. | Problem (problem+json) |