- Jupyter scripts
- Code Engine Functions
- Custom Java/Node/Python scripts
Create Role
Playground
Overview
Create a Role based on an existing role’s authoritiesEndpoint
POST/api/authorization/v1/roles
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
name | String | Yes | The name that will be displayed for the role |
description | String | Yes | Description that will be displayed for the role |
fromRoleId | Integer | Yes | The ID of the role to fetch |
Example
Response
Get Role By Id
Playground
Overview
Fetch a single Role by role idEndpoint
GET/api/authorization/v1/roles/{roleId}
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
roleId | Integer | Yes | The ID of the role to fetch |
Example
Response
Get All Roles
Playground
Overview
Fetch a all Roles in an instanceEndpoint
GET/api/authorization/v1/roles
Example
Response
Update Role Authorities
Playground
Overview
Updates the authorities or grants which a role is capable of utilizingEndpoint
PATCH/api/authorization/v1/roles/{roleId}/authorities
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
roleId | Integer | Yes | The ID of the role to updated |
Body
The body for this query is a string array containing the complete list of authorities the role should have after the updateExample
Response
Delete Role
Playground
Overview
Delete a RoleEndpoint
DELETE/api/authorization/v1/roles/{roleId}
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
roleId | Integer | Yes | The ID of the role to updated |