Create
POST
/roles/
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/roles/' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "RewardOperator",
"description": "Manages rewards and issuing",
"permissions": [149, 150, 151, 152, 153, 154, 155, 156] // reward category + reward CRUD
}'
Response Response Example
{
"success": false,
"message": "You do not have permission to perform this action.",
"errors": {
"detail": "You do not have permission to perform this action."
}
}
Request
Header Params
Authorization
string
required
Example:
Bearer {{access_token}}
Body Params application/json