Dozor
Members

Change a member's role

OWNER-only. Multiple OWNERs per org are allowed — single-OWNER lock-out is not enforced by the API.

PATCH/api/organizations/{orgId}/members/{memberId}

OWNER-only. Multiple OWNERs per org are allowed — single-OWNER lock-out is not enforced by the API.

Path Parameters

orgId*string

Organisation id (cuid)

memberId*string

Membership id (cuid) — NOT the user id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X PATCH "https://loading/api/organizations/string/members/string" \  -H "Content-Type: application/json" \  -d '{    "role": "ADMIN"  }'
Empty
Empty
Empty
Empty
Empty