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 and the key's creator is an Admin of that website. 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

  • Base URL
    https://api.athenahq.ai
  • Auth
    API key in header x-api-key

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
}

Changes

No recorded changes to this operation across all 3 revisions of this API.