PATCH
/
v1
/
organizations
/
{organizationSlug}
/
members
/
{username}
curl -L -X PATCH https://api.turso.tech/v1/organizations/{organizationSlug}/members/{username} \
  -H 'Authorization: Bearer TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "role": "member"
  }'
{
  "member": {
    "username": "<string>",
    "email": "<string>",
    "role": "admin"
  }
}
curl -L -X PATCH https://api.turso.tech/v1/organizations/{organizationSlug}/members/{username} \
  -H 'Authorization: Bearer TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "role": "member"
  }'

Path Parameters

organizationSlug
string
required

The slug of the organization or user account.

username
string
required

The username of a Turso user or organization member.

Body

application/json
role
enum<string>
required

The new role to assign to the member.

Available options:
admin,
member,
viewer

Response

200
application/json
Successful response
member
object

Was this page helpful?