Change a member's role
PATCH/v1/team/members/{id}
Only an owner may make or unmake owners, and an account must always keep at least one.
Parameters
| Name | In | Description |
|---|---|---|
| idrequired | path |
Body
| Field | Type | Description |
|---|---|---|
| rolerequired | Role | A 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.
| Field | Type | Description |
|---|---|---|
| object | "user" | |
| id | string | |
| string | ||
| name | string | |
| role | Role | A console role. Each bounds the scopes its holder can grant to a key. One of owner, admin, developer, billing, support, analyst, auditor. |
| email_verified | boolean | |
| mfa_enabled | boolean | |
| last_login_at | timestamp | |
| created_at | timestamp |
Errors
| Status | Codes |
|---|---|
| 400 | invalid_request, unsupported_version |
| 403 | insufficient_scope, domain_not_verified, recipient_suppressed, sending_paused, mfa_required |
| 404 | not_found, product_not_offered |
Also in Team
- GET /v1/team/members — List the team
- DELETE /v1/team/members/{id} — Remove a member
- GET /v1/team/invites — List pending invitations
- POST /v1/team/invites — Invite someone by email
- DELETE /v1/team/invites/{id} — Cancel an invitation