Create User Role Access: /user-role-access/ (POST)
Purpose:
Create a user role access. Adding a user to a role. The manage_role permission is required.
Input:
- Headers:
- Content-Type: application/json
- Client-Secret: (Optional) A header to authenticate the request.
- Authorization: The JWT token of the user.
- JSON Body:
- user_id: (Uuid) The id of the user.
- role_id: (Uuid) The id of the role.
Output (200):
{
"id": "71ece9e8-be73-4d2f-9523-6259e3232078",
"user_id": "cff401b1-25d7-4891-ba62-697efa45bb37",
"role_id": "acc046fe-acaa-4927-90e1-d30e0865ba81",
"deleted": false
}