Create role
POST/v1/roles-with-permissions
Create role
This endpoint allows clients to create a new role with associated permissions within the system. It accepts a JSON payload specifying the role details and permissions, and returns a status indicating success or failure. Upon successful creation, it also logs the activity.
Request
- application/json
Body
required
daily_limit int32nullable
monthly_limit int32nullable
name stringrequired
permissions uuid[]required
single_tx_limit int32nullable
wallet_id uuidrequired
Responses
- 201
- 400
- 500
Role created
- text/plain
- Schema
Schema
string
Bad request
- text/plain
- Schema
Schema
string
Internal server error
- text/plain
- Schema
Schema
string
Loading...