Skip to main content
Use this endpoint to change the status of a team member on your Shogun account. Setting a member’s status to inactive immediately blocks their ability to log in to the dashboard or call the API. Setting it back to active restores their access. This is useful for temporarily suspending a member without permanently removing them from your account.

Endpoint

POST /api/v1/auth/web/update_member_status

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 status you want to update. Use Fetch Members to look up member IDs.
status
string
required
The new status to apply to the member. Accepted values:
ValueDescription
activeRestore the member’s access
inactiveBlock the member’s access
suspendedSuspend the member’s account
deactivatedDeactivate the member’s account

Response

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

Example

curl -X POST https://baasapi.payrepmfb.com/api/v1/auth/web/update_member_status \
  -H "Authorization: Bearer <access_token>" \
  -H "Content-Type: application/json" \
  -d '{
    "user_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "status": "inactive"
  }'
Status changes take effect immediately. A member set to inactive or suspended will be denied access on their very next request, including any in-progress dashboard session. Make sure you intend to block the member before calling this endpoint.