WoyraDocs
Get an API key

Change a member's role

PATCH/v1/team/members/{id}

Team · Requires an API key

Only an owner may make or unmake owners, and an account must always keep at least one.

Parameters

NameInDescription
idrequiredpath

Body

FieldTypeDescription
rolerequiredRoleA console role. Each bounds the scopes its holder can grant to a key.
One of owner, admin, developer, billing, support, analyst, auditor.

Example

curl -X PATCH https://api.woyra.io/v1/team/members/email_01J... \
  -H "Authorization: Bearer $WOYRA_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "role": "owner"
  }'

Response

200 The member.

FieldTypeDescription
object"user"
idstring
emailstring
namestring
roleRoleA console role. Each bounds the scopes its holder can grant to a key.
One of owner, admin, developer, billing, support, analyst, auditor.
email_verifiedboolean
mfa_enabledboolean
last_login_attimestamp
created_attimestamp

Errors

StatusCodes
400invalid_request, unsupported_version
403insufficient_scope, domain_not_verified, recipient_suppressed, sending_paused, mfa_required
404not_found, product_not_offered

Also in Team