Login | Sign Up
  • FA
  • EN

API Docs

POST /api/v1/admin/roles

Create a new role.


Permissions

PermissionDescription
roles.view_allAccess roles
roles.createCreate role

Request Body Parameters

NameTypeRequiredDescription
namestringYesName of the role (max 255)
permissionsarrayNoList of permission IDs (optional)

Response

200 OK

{
  "data": { /* role resource */ }
}

Error Responses

StatusDescriptionReference
422Validation errorValidation error
401UnauthorizedAuthentication error
403Forbidden (no permission)Permission error

footer wave
logo

Dambel, the smart world of fitness and nutrition

LinkedinInstagramXYoutubeTelegramGitHub