Roles
Get all roles of a user
GET
https://yourwebsite.com/api/users/<user_id>/roles
Path Parameters
Name
Type
Description
user_id*
numeric
User's ID
Add role to user
POST
https://yourwebsite.com/api/users/<user_id>/roles
Path Parameters
Name
Type
Description
user_id*
numeric
User's ID
Request Body
Name
Type
Description
roleID*
numeric
expiryDate
string
Update user roles
PATCH
https://yourwebsite.com/api/users/<user_id>/roles/<role>
Path Parameters
Name
Type
Description
user_id*
numeric
User's ID
role
string
Role ID
Request Body
Name
Type
Description
roleID*
numeric
expiryDate
string
Remove role from user
DELETE
https://yourwebsite.com/api/users/<user_id>/roles/<role>
Path Parameters
Name
Type
Description
user_id*
numeric
User's ID
role*
string
Role ID
Last updated