Change a member’s role
Sets the role to viewer, editor or admin. The owner’s role cannot change (transfer ownership in the dashboard) and you cannot change your own. Needs the admin role.
Related: List members and Remove a member in Team.
Request
Path parameters
websitestringrequiredWebsite id or domain, e.g. example.com
1–253 characters
userIdstringrequiredPattern: ^[a-f0-9]{24}$
Headers
AuthorizationstringrequiredBearer followed by an account token with the team:write scope.
Content-TypestringrequiredSend the body as JSON.
One of: application/json
Body fields
rolestringrequiredOne of: viewer, editor, admin
Response
The new role.
{
"status": "string",
"data": {
"userId": "string",
"role": "string"
}
}Response fields
| Field | Type | Description |
|---|---|---|
| status | "ok" | |
| data | object | |
| data.userId | string | |
| data.role | string |