Skip to content

Product documentation

Permissions

RBAC permission catalog (SSO-1891).

Permissions

RBAC permission catalog (SSO-1891).

Base URL: https://api.stg.thoryn.org

Operations

MethodPathSummaryScopes
GET/api/v1/permissionsPermissions Listtenant:roles.read
POST/api/v1/permissionsPermissions Createtenant:roles.write
GET/api/v1/permissions/{id}Permissions Gettenant:roles.read
DELETE/api/v1/permissions/{id}Permissions Deletetenant:roles.write

Operation details

GET /api/v1/permissions

Permissions List

  • Operation ID: permissionsList
  • Required scopes: tenant:roles.read

Parameters:

NameInRequiredTypeDescription
limitquerynointeger
cursorquerynostring

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — 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/jsonCreatePermissionRequest

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — 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:

NameInRequiredTypeDescription
idpathyesstring

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — 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:

NameInRequiredTypeDescription
idpathyesstring

Responses:

StatusDescriptionBody
200OKobject
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)