Skip to main content
PATCH
/
api
/
v1
/
organizations
/
members
/
{user_id}
Update Organization Member Role
curl --request PATCH \
  --url https://api.athenahq.ai/api/v1/organizations/members/{user_id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "role": "admin"
}
'
{
  "success": true,
  "member": {
    "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "role": "admin"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.athenahq.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

API key for authentication. You can create one here.

Path Parameters

user_id
string<uuid>
required

The unique identifier of the target user

Body

application/json

Request body for updating a member's role

role
enum<string>
required

The new role to assign to the member

Available options:
admin,
viewer
Example:

"admin"

Response

Member role updated successfully

success
boolean
required
Example:

true

member
object
required

A user's membership in an organization