Login | Sign Up
  • FA
  • EN

API Docs

POST /api/v1/users/{user-id}/attach-role/{role-id}

Attach a role to a user.


Permissions

PermissionDescription
users.attach_roleAttach a role to any user except themselves

Response

201 Created

{
  "message": "Role attached successfully"
}

Error Responses

StatusDescriptionReference
400User already has this role
401UnauthorizedAuthentication error
403Forbidden (no permission)Permission error
404Not foundNot-found error

footer wave
logo

Dambel, the smart world of fitness and nutrition

LinkedinInstagramXYoutubeTelegramGitHub