Change a member's role and/or status
PATCH/v1/networks/:networkId/members/:userId
Updates a member's role (admin/viewer) and/or status (active/pending/suspended); at least one of the two must be provided. Requires the administrator role, and a caller cannot grant a role higher than its own (403). Demoting, suspending, or otherwise removing the last active admin is blocked and returns 409, as does a version conflict.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
The updated member
Nothing to update, or an invalid role/status
Missing or invalid API key
Cannot grant a role higher than your own
Member not found
Would demote/suspend the last active admin, or a version conflict