POST /api/v1/users/{user-id}/attach-role/{role-id}
Attach a role to a user.
Permission | Description |
---|---|
users.attach_role | Attach a role to any user except themselves |
{
"message": "Role attached successfully"
}
{
"error": "User already has this role"
}