Roles
Permissions
RBAC
Authorization
Add a role
Changed onThis endpoint can be used to add a new role to the Splinter Role-based authorization system. The role must conform to the role schema and have unique "role_id" value.
This endpoint requires the permission "authorization.rbac.write".
post/authorization/roles
Request
- Base URLhttp://localhost:9000/api
- URLhttp://localhost:9000/api/authorization/roles
- Authnone declared. Required headers: Authorization
Headers
Authorizationstring required
The client's authorization, which the server resolves to an identity. Currently supports Biome JWT (if Biome credentials is enabled), Cylinder JWT, and OAuth2 bearer tokens.
SplinterProtocolVersioninteger
Example:2
The protocol version which the client can understand. If not provided, the node will respond using its latest protocol version.
Request body
Example request
{
"role_id": "circuit-administrator",
"display_name": "Circuit Administrator"
}Response
The role was successfully added
Changes
- info
api tag
Authorizationadded - info
api tag
Permissionsadded - info
api tag
RBACadded - info
api tag
Rolesadded
- info
- info
endpoint added
- info