Skip to main content
PATCH
/
teams
/
members
/
{userId}
/
status
Update Member Status
curl --request PATCH \
  --url https://api.rolla.xyz/api/v1/external/teams/members/{userId}/status \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "status": "active"
}
'
{
  "success": true,
  "message": "Member status updated successfully"
}
Activate or deactivate a team member. Only business owners can update member status.

Example Request

curl -X PATCH "https://api.rolla.xyz/api/v1/external/teams/members/a1b2c3d4-e5f6-7890-abcd-ef1234567890/status" \
  -H "X-API-Key: your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "status": "inactive"
  }'

Example Response

{
  "success": true,
  "message": "Member status updated successfully"
}
The business owner’s status cannot be changed, and pending invites cannot be activated or deactivated. Only active and inactive members can have their status updated.

Authorizations

X-API-Key
string
header
required

Your Rolla API key

Path Parameters

userId
string<uuid>
required

User UUID of the team member

Body

application/json
status
enum<string>
required

New status for the team member

Available options:
active,
inactive

Response

Member status updated successfully

success
boolean
Example:

true

message
string
Example:

"Member status updated successfully"