Skip to main content
PATCH
/
v1
/
apps
/
{app_id}
/
users
/
{user_id}
/
role
Update user role
curl --request PATCH \
  --url https://api.mixpeek.com/v1/apps/{app_id}/users/{user_id}/role \
  --header 'Content-Type: application/json' \
  --data '
{
  "role": "<string>"
}
'
{
  "user_id": "<string>",
  "membership_id": "<string>",
  "role": "<string>",
  "email": "<string>",
  "name": "<string>",
  "avatar_url": "<string>",
  "joined_at": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.mixpeek.com/docs/llms.txt

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

Headers

Authorization
string

REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.

Examples:

"Bearer YOUR_API_KEY"

"Bearer YOUR_STRIPE_API_KEY"

Path Parameters

app_id
string
required

App ID

user_id
string
required

Clerk user ID

Body

application/json
role
string
required

New Clerk org role (org:admin or org:member)

Response

Successful Response

user_id
string
required
membership_id
string
required
role
string
required
email
string | null
name
string | null
avatar_url
string | null
joined_at
string | null