Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.04 KB

File metadata and controls

34 lines (24 loc) · 1.04 KB

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

Attach a role to a user.


Permissions

Permission Description
users.attach_role Attach a role to any user except themselves

Response

201 Created

{
  "message": "Role attached successfully"
}

Error Responses

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