v1

latestOpenAPI 3.1.02026-07-2295105298.6 KB
Team Management

Update Website Member Role

Updates a website member's role. Accepts a global API key, or a website-scoped key if the website is included in the key's allowlist. Cannot be used to modify the API key's owning user or the organization owner.

patch/api/v1/websites/{website_id}/members/{user_id}

Request body

role'admin' | 'viewer' required

The new role to assign to the member

Example request

{
  "role": "admin"
}

Response

Member role updated successfully

successboolean required

Example response

{
  "success": true
}