curl --request PATCH \
--url https://app.thinnest.ai/api/v1/workspace \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Sunrise Dental Clinic Pvt Ltd",
"timezone": "Asia/Kolkata"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Sunrise Dental Clinic Pvt Ltd', timezone: 'Asia/Kolkata'})
};
fetch('https://app.thinnest.ai/api/v1/workspace', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/workspace"
payload = {
"name": "Sunrise Dental Clinic Pvt Ltd",
"timezone": "Asia/Kolkata"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "org_c2a84f17-6e3b-4d9a-b051-8f7e2d4c1a69",
"name": "Sunrise Dental Clinic Pvt Ltd",
"slug": "sunrise-dental",
"timezone": "Asia/Kolkata",
"callRetentionDays": null,
"planRetentionDays": 30,
"createdAt": "2026-08-14T05:22:31.904Z"
}Update Workspace
Renames the workspace, changes its time zone, or sets how many days calls are kept (callRetentionDays) — any of them. The name appears in invitation emails, so it follows the rules for a person’s name: 2 to 80 characters (a longer one is refused with a 400), no web or email address, no markup. Every date in the console is shown in the time zone. The slug never changes. Needs a full key.
curl --request PATCH \
--url https://app.thinnest.ai/api/v1/workspace \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Sunrise Dental Clinic Pvt Ltd",
"timezone": "Asia/Kolkata"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Sunrise Dental Clinic Pvt Ltd', timezone: 'Asia/Kolkata'})
};
fetch('https://app.thinnest.ai/api/v1/workspace', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/workspace"
payload = {
"name": "Sunrise Dental Clinic Pvt Ltd",
"timezone": "Asia/Kolkata"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "org_c2a84f17-6e3b-4d9a-b051-8f7e2d4c1a69",
"name": "Sunrise Dental Clinic Pvt Ltd",
"slug": "sunrise-dental",
"timezone": "Asia/Kolkata",
"callRetentionDays": null,
"planRetentionDays": 30,
"createdAt": "2026-08-14T05:22:31.904Z"
}Authorizations
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. Refused with 404 (Workspace not found.) when the id is unknown, is not one of your customers, or is not an org_… id; 410 when that customer was deleted (restore it with POST /customers/{id}/restore until it is erased); 403 when the key belongs to one customer workspace (it cannot act as another); 400 when your workspace is not a developer workspace. /customers/* and GET /customers/usage are your own workspace's and refuse the header with 400: call them without it.
"org_3fKq9TzQ1mN8vB2xR7cLpA"
Body
Send name, timezone, callRetentionDays, or any of them.
Keep calls' recordings and transcripts for this many days, from 1 to your plan's planRetentionDays (a longer number is refused with a 400 naming your plan's maximum). From the next night, older calls lose their recording and transcript; their billing record stays. null goes back to your plan's window for recordings and keeps transcripts.
x >= 114
Response
The workspace as it now is.
How many days calls' recordings and transcripts are kept. Every night, the content of calls older than this is deleted the way Delete Call Content deletes it — the billing record stays. Null keeps recordings for your plan's planRetentionDays and transcripts with no end.
14