Get role
GET/v1/roles-with-permissions/:roleId
Get role
This endpoint retrieves detailed information about a role, including its associated permissions, based on the provided role_id. It returns a JSON object containing the role's ID, wallet ID, name, transaction limits, creation timestamp, permissions, and whether it has active users. If the role does not exist, it responds with a 404 status code indicating that the role was not found. In case of internal errors, it returns a 500 status code.
Request
Path Parameters
role_id stringrequired
Role id
roleId uuidrequired
Responses
- 200
- 404
- 500
Role with permissions found
- application/json
- Schema
- Example (from schema)
Schema
createdAt date-timerequired
dailyLimit int32nullable
hasActiveUsers booleanrequired
id uuidrequired
monthlyLimit int32nullable
name stringrequired
permissions string[]required
singleTxLimit int32nullable
walletId uuidrequired
{
"createdAt": "2024-09-25T19:42:12.623Z",
"dailyLimit": 0,
"hasActiveUsers": true,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"monthlyLimit": 0,
"name": "string",
"permissions": [
"string"
],
"singleTxLimit": 0,
"walletId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Role not found
- text/plain
- Schema
Schema
string
Internal server error
- text/plain
- Schema
Schema
string
Loading...