Login | Sign Up
  • FA
  • EN

API Docs

PUT /api/v1/admin/roles/{role-id}

Update an existing role.


Permissions

PermissionDescription
roles.view_allAccess roles
roles.updateUpdate 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
404Not foundNot found error

footer wave
logo

Dambel, the smart world of fitness and nutrition

LinkedinInstagramXYoutubeTelegramGitHub