Change a member's role

PATCH /api/v1/members/{userID}

Only an owner may grant or change the owner role, and the last owner or admin cannot be demoted.

Who may call it

owner, admin

Parameters

NameInRequiredDescription
userIDpathyes

Responses

200

The member.

400

The request is wrong; message says what to fix.

401

The access key is missing, expired or revoked.

403

Your role may not call this endpoint, or the key is read only (read_only_key).

404

The item does not exist in your organization.

409

The item changed since you read it, or its state does not allow the action.

429

Too many requests for this key (rate_limited). Wait for the seconds in Retry-After.