curl --request PATCH \
--url https://app.thinnest.ai/api/v1/members/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"role": "admin"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({role: 'admin'})
};
fetch('https://app.thinnest.ai/api/v1/members/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/members/{id}"
payload = { "role": "admin" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "1f3a5c7e-9b2d-4e6f-8a0c-2e4f6a8b0d13",
"name": "Rahul Kulkarni",
"email": "rahul@sunrisedental.in",
"role": "admin",
"joinedAt": "2026-09-03T12:48:09.377Z"
}{
"error": "`role` must be `admin` or `member`."
}{
"error": "Send a valid API key as `Authorization: Bearer <key>`."
}{
"error": "Only an owner can make another owner. Do it from the console, signed in as one."
}{
"error": "That member was not found."
}{
"error": "A workspace needs at least one owner."
}{
"error": "Over 240 requests a minute. Slow down and retry."
}Update Member
Changes a member’s role to admin or member. A key cannot make anybody an owner — do that in the console, signed in as one — and the workspace’s last owner cannot be demoted. Needs a full key.
curl --request PATCH \
--url https://app.thinnest.ai/api/v1/members/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"role": "admin"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({role: 'admin'})
};
fetch('https://app.thinnest.ai/api/v1/members/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/members/{id}"
payload = { "role": "admin" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "1f3a5c7e-9b2d-4e6f-8a0c-2e4f6a8b0d13",
"name": "Rahul Kulkarni",
"email": "rahul@sunrisedental.in",
"role": "admin",
"joinedAt": "2026-09-03T12:48:09.377Z"
}{
"error": "`role` must be `admin` or `member`."
}{
"error": "Send a valid API key as `Authorization: Bearer <key>`."
}{
"error": "Only an owner can make another owner. Do it from the console, signed in as one."
}{
"error": "That member was not found."
}{
"error": "A workspace needs at least one owner."
}{
"error": "Over 240 requests a minute. Slow down and retry."
}Authorizations
Your API key (ta_live_…) from Settings → API keys, sent as Authorization: Bearer <key>. Keep it on a server: it can message every customer you have. A key is full, build or read-only; a request its level does not allow is refused with 403.
Headers
Developers only: the customer workspace this request acts in — its org_… id from POST /customers. Leave it out to act in your own workspace.
"org_3fKq9TzQ1mN8vB2xR7cLpA"
Path Parameters
The member's id, from List Members.
Body
The new role. owner is refused with 403: make owners in the console.
admin, member "admin"
Response
The member as they now are.
The person's id, used by Update Member, Remove Member and Add Team Member.
"1f3a5c7e-9b2d-4e6f-8a0c-2e4f6a8b0d13"
Their name.
"Rahul Kulkarni"
Their sign-in email.
"rahul@sunrisedental.in"
owner, admin or member.
owner, admin, member "member"
When they joined the workspace.
"2026-09-03T12:48:09.377Z"