Update a role
PUT
/roles/{id}
Permissions
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://transactions.srblabs.io/api/v1/roles/' \
--header 'Content-Type: application/json' \
--data-raw '{
"description": "string",
"name": "string",
"permissions": [
"string"
]
}'
Response Response Example
200 - 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
Path Params
id
string
required
Body Params application/json
Responses
Modified at 2025-04-30 01:06:55