Roles
Roles: 16 operations, tagged roles in the OpenAPI document.
| Method | Path | Summary |
|---|---|---|
GET |
/api/roles |
List roles |
POST |
/api/roles |
Create a role |
GET |
/api/roles/by-application/{applicationId} |
List roles for an application |
GET |
/api/roles/by-code/{code} |
Get a role by name (code) |
GET |
/api/roles/by-source/{source} |
List roles by source (CODE | DATABASE | SDK) |
GET |
/api/roles/filters/applications |
List distinct application codes used by roles |
GET |
/api/roles/permissions |
List the platform permission catalog |
GET |
/api/roles/permissions/{permission} |
Get a single permission catalog entry |
DELETE |
/api/roles/permissions/{permission} |
Delete a permission from the catalog |
GET |
/api/roles/{id} |
Get a role by id |
PUT |
/api/roles/{id} |
Update a role |
DELETE |
/api/roles/{id} |
Delete a role |
GET |
/api/roles/{roleName}/permissions |
List permissions granted to a role |
POST |
/api/roles/{roleName}/permissions |
Grant a permission to a role (SDK; permission in body) |
POST |
/api/roles/{roleName}/permissions/{permission} |
Grant a permission to a role |
DELETE |
/api/roles/{roleName}/permissions/{permission} |
Revoke a permission from a role |
Operations
Section titled “Operations”GET /api/roles
Section titled “GET /api/roles”List roles
Operation ID: listRoles
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json RoleListResponse |
default |
Error | application/json ErrorModel |
POST /api/roles
Section titled “POST /api/roles”Create a role
Operation ID: createRole
Request body (required)
| Content type | Schema |
|---|---|
application/json |
CreateRoleRequest |
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created | application/json CreatedResponse |
default |
Error | application/json ErrorModel |
GET /api/roles/by-application/{applicationId}
Section titled “GET /api/roles/by-application/{applicationId}”List roles for an application
Operation ID: getRolesByApplication
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
applicationId |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json RoleResponse[] |
default |
Error | application/json ErrorModel |
GET /api/roles/by-code/{code}
Section titled “GET /api/roles/by-code/{code}”Get a role by name (code)
Operation ID: getRoleByCode
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
code |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json RoleResponse |
default |
Error | application/json ErrorModel |
GET /api/roles/by-source/{source}
Section titled “GET /api/roles/by-source/{source}”List roles by source (CODE | DATABASE | SDK)
Operation ID: getRolesBySource
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
source |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json RoleResponse[] |
default |
Error | application/json ErrorModel |
GET /api/roles/filters/applications
Section titled “GET /api/roles/filters/applications”List distinct application codes used by roles
Operation ID: getRoleApplicationFilters
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json ApplicationFilterListResponse |
default |
Error | application/json ErrorModel |
GET /api/roles/permissions
Section titled “GET /api/roles/permissions”List the platform permission catalog
Operation ID: listPermissions
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json PermissionListResponse |
default |
Error | application/json ErrorModel |
GET /api/roles/permissions/{permission}
Section titled “GET /api/roles/permissions/{permission}”Get a single permission catalog entry
Operation ID: getPermission
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
permission |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json PermissionResponse |
default |
Error | application/json ErrorModel |
DELETE /api/roles/permissions/{permission}
Section titled “DELETE /api/roles/permissions/{permission}”Delete a permission from the catalog
Operation ID: deletePermission
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
permission |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
204 |
No Content | none |
default |
Error | application/json ErrorModel |
GET /api/roles/{id}
Section titled “GET /api/roles/{id}”Get a role by id
Operation ID: getRole
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | Role id (TSID) |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json RoleResponse |
default |
Error | application/json ErrorModel |
PUT /api/roles/{id}
Section titled “PUT /api/roles/{id}”Update a role
Operation ID: updateRole
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Request body (required)
| Content type | Schema |
|---|---|
application/json |
UpdateRoleRequest |
Responses
| Status | Description | Body |
|---|---|---|
204 |
No Content | none |
default |
Error | application/json ErrorModel |
DELETE /api/roles/{id}
Section titled “DELETE /api/roles/{id}”Delete a role
Operation ID: deleteRole
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
204 |
No Content | none |
default |
Error | application/json ErrorModel |
GET /api/roles/{roleName}/permissions
Section titled “GET /api/roles/{roleName}/permissions”List permissions granted to a role
Operation ID: listRolePermissions
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
roleName |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json RolePermissionListResponse |
default |
Error | application/json ErrorModel |
POST /api/roles/{roleName}/permissions
Section titled “POST /api/roles/{roleName}/permissions”Grant a permission to a role (SDK; permission in body)
Operation ID: grantRolePermissionByBody
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
roleName |
path | string | yes |
Request body (required)
| Content type | Schema |
|---|---|
application/json |
GrantPermissionRequest |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json RoleResponse |
default |
Error | application/json ErrorModel |
POST /api/roles/{roleName}/permissions/{permission}
Section titled “POST /api/roles/{roleName}/permissions/{permission}”Grant a permission to a role
Operation ID: grantRolePermission
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
roleName |
path | string | yes | |
permission |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json RoleResponse |
default |
Error | application/json ErrorModel |
DELETE /api/roles/{roleName}/permissions/{permission}
Section titled “DELETE /api/roles/{roleName}/permissions/{permission}”Revoke a permission from a role
Operation ID: revokeRolePermission
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
roleName |
path | string | yes | |
permission |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json RoleResponse |
default |
Error | application/json ErrorModel |
Schemas
Section titled “Schemas”ApplicationFilterListResponse
Section titled “ApplicationFilterListResponse”| Field | Type | Required | Description |
|---|---|---|---|
applicationCodes |
string[] | yes |
CreatedResponse
Section titled “CreatedResponse”| Field | Type | Required | Description |
|---|---|---|---|
id |
string | yes |
CreateRoleRequest
Section titled “CreateRoleRequest”| Field | Type | Required | Description |
|---|---|---|---|
applicationCode |
string | yes | Application code (e.g. platform, iam) |
clientManaged |
boolean | yes | Whether the role is managed at client scope |
description |
string | no | |
displayName |
string | yes | Human-readable role name |
permissions |
string[] | no | Permission codes assigned to the role |
roleName |
string | yes | Role name within the application |
GrantPermissionRequest
Section titled “GrantPermissionRequest”| Field | Type | Required | Description |
|---|---|---|---|
permission |
string | yes |
PermissionListResponse
Section titled “PermissionListResponse”| Field | Type | Required | Description |
|---|---|---|---|
permissions |
PermissionResponse[] |
yes | |
total |
integer (int64) | yes |
PermissionResponse
Section titled “PermissionResponse”| Field | Type | Required | Description |
|---|---|---|---|
category |
string | no | |
description |
string | no | |
name |
string | yes | |
permission |
string | yes |
RoleListResponse
Section titled “RoleListResponse”| Field | Type | Required | Description |
|---|---|---|---|
roles |
RoleResponse[] |
yes | |
total |
integer (int64) | yes |
RolePermissionListResponse
Section titled “RolePermissionListResponse”| Field | Type | Required | Description |
|---|---|---|---|
permissions |
string[] | yes |
RoleResponse
Section titled “RoleResponse”| Field | Type | Required | Description |
|---|---|---|---|
applicationCode |
string | yes | |
applicationId |
string | no | |
clientManaged |
boolean | yes | |
createdAt |
string (date-time) | yes | |
description |
string | no | |
displayName |
string | yes | |
id |
string | yes | |
name |
string | yes | |
permissions |
string[] | yes | |
source |
string | yes | |
updatedAt |
string (date-time) | yes |
UpdateRoleRequest
Section titled “UpdateRoleRequest”| Field | Type | Required | Description |
|---|---|---|---|
clientManaged |
boolean | no | |
description |
string | no | |
displayName |
string | no | |
permissions |
string[] | no |