Skip to main content
Use this endpoint to reassign a team member to a different role on your Shogun account. You supply the member’s user_id and the role_id of the role they should now hold. The change takes effect immediately — the member’s permissions are updated on their next authenticated request.

Endpoint

POST /api/v1/auth/web/edit_member_role

Authentication

This endpoint requires a valid Dashboard JWT. Pass the token in the Authorization header:
Authorization: Bearer <access_token>

Request Body

user_id
string (UUID)
required
The unique identifier of the team member whose role you want to update. Use Fetch Members to look up member IDs.
role_id
string (UUID)
required
The unique identifier of the new role to assign to the member. Use Fetch Roles to retrieve the list of available roles and their IDs.

Response

{
  "status": true,
  "response_code": "00",
  "message": "Team member role updated successfully",
  "data": {}
}

Example

curl -X POST https://baasapi.payrepmfb.com/api/v1/auth/web/edit_member_role \
  -H "Authorization: Bearer <access_token>" \
  -H "Content-Type: application/json" \
  -d '{
    "user_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "role_id": "r9c8b7a6-d5e4-3210-fedc-ba0987654321"
  }'