All APIs

Update member role or billing status

Members View as Markdown

PATCH/api/user/{userId}

Changes either role or billingStatus (not both) along the member state transition table. Owner role changes are rejected here; use the transfer-ownership flow.

Parameters

userIdintegerpathRequired
ID of the user to update.

Responses

  • 200Updated member state
  • 400Transition not allowed for the current member state
  • 401Authentication is required
  • 403Admin only
  • 404User not found in this space
  • 409The member state changed concurrently

Repsona uses cookies to provide our services. By visiting our website, you agree to the use of cookies as described in our Cookie Policy.