Create a new role
POST
/roles
Permissions
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://transactions.srblabs.io/api/v1/roles' \
--header 'Content-Type: application/json' \
--data-raw '{
"description": "string",
"name": "string",
"permissions": [
"string"
]
}'
Response Response Example
201 - Example 1
{
"created_at": "string",
"description": "string",
"id": "string",
"is_system": true,
"name": "string",
"permissions": [
{
"action": "read",
"description": "string",
"id": "string",
"is_system": true,
"name": "string",
"resource_type": "wallet"
}
],
"updated_at": "string"
}
Request
Body Params application/json
Responses
Modified at 2025-04-30 01:06:55