Organizations and members
PATCH/v1/org/members/{mid}
Update member
curl -X PATCH "https://api.52-28-238-205.sslip.io/v1/org/members/{mid}" \ -H "Cookie: <console session cookie>" \ -H "Content-Type: application/json" \ -d '{"role":"finance","team_id":"team_01jd2x3k4m5n6p7q8r9s0t1v2w","grants":["string"]}'Changes a member's role, team or extra permission grants. Console session or API key with members:manage; only grantable roles are accepted, only an owner can make an owner, and the last owner can't be demoted (409).
Server URL
https://api.52-28-238-205.sslip.ioPATCH/v1/org/members/{mid}Base URL: https://api.52-28-238-205.sslip.io
Authorization
sessionCookie: <console session cookie>apiKeyAuthorization: Bearer sk_test_...
Path
midstringrequiredMembership id (mem_...).
Body
application/json · required. Fields are listed under Request body below.
Requires permissionmembers:manage
Held by
owner, admin, operator, merchant_owner. The caller must hold this permission, or the call is refused with 403.cookie
uapg_session<token>Console session cookie (HttpOnly, SameSite=Lax)
mid*MidMembership id (mem_...).
application/json- body
role?string|nullteam_id?|Team id (team_...).
grants?array<string>|nullSuccess.
application/json- response
member*[key: string]?any