API referenceMembers
Change a member's role
Owners and admins change roles; only an owner can make or unmake an owner, and the last owner stays.
AuthorizationBearer <token>
A management key, made in the console. It acts as an admin of its account.
In: header
Path Parameters
user*string
The member's id.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/v1/admin/members/string" \ -H "Content-Type: application/json" \ -d '{ "role": "owner" }'{ "id": "string", "name": "string", "email": "string", "role": "owner", "joined_at": "string"}