Attach a role to a user.
| Permission | Description |
|---|---|
users.attach_role | Attach a role to any user except themselves |
{
"message": "Role attached successfully"
}
| Status | Description | Reference |
|---|---|---|
| 400 | User already has this role | |
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden (no permission) | Permission error |
| 404 | Not found | Not-found error |