Update Customer
curl --request PATCH \
--url https://app.thinnest.ai/api/v1/customers/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Sunrise Dental Clinic Pvt Ltd",
"allottedCallLines": 3,
"metadata": {
"tier": null,
"region": "west"
}
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Sunrise Dental Clinic Pvt Ltd',
allottedCallLines: 3,
metadata: {tier: null, region: 'west'}
})
};
fetch('https://app.thinnest.ai/api/v1/customers/{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/customers/{id}"
payload = {
"name": "Sunrise Dental Clinic Pvt Ltd",
"allottedCallLines": 3,
"metadata": {
"tier": None,
"region": "west"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "org_5b2f9c1e-8a4d-4f7b-9e3a-2c6d1f0a7b84",
"name": "Sunrise Dental Clinic Pvt Ltd",
"externalId": "clinic-0042",
"metadata": {
"city": "Pune",
"seats": 3,
"region": "west"
},
"timezone": "Asia/Kolkata",
"allottedCallLines": 3,
"archivedAt": null,
"eraseAfter": null,
"createdAt": "2026-10-02T06:14:22.418Z"
}Customers
Update Customer
Changes a customer’s name, externalId, timezone, allottedCallLines or metadata; fields you leave out are kept. metadata is merged, not replaced: keys you do not mention stay, and a key set to null is removed. A deleted customer must be restored before it can be changed. Needs a full key.
PATCH
/
customers
/
{id}
Update Customer
curl --request PATCH \
--url https://app.thinnest.ai/api/v1/customers/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Sunrise Dental Clinic Pvt Ltd",
"allottedCallLines": 3,
"metadata": {
"tier": null,
"region": "west"
}
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Sunrise Dental Clinic Pvt Ltd',
allottedCallLines: 3,
metadata: {tier: null, region: 'west'}
})
};
fetch('https://app.thinnest.ai/api/v1/customers/{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/customers/{id}"
payload = {
"name": "Sunrise Dental Clinic Pvt Ltd",
"allottedCallLines": 3,
"metadata": {
"tier": None,
"region": "west"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "org_5b2f9c1e-8a4d-4f7b-9e3a-2c6d1f0a7b84",
"name": "Sunrise Dental Clinic Pvt Ltd",
"externalId": "clinic-0042",
"metadata": {
"city": "Pune",
"seats": 3,
"region": "west"
},
"timezone": "Asia/Kolkata",
"allottedCallLines": 3,
"archivedAt": null,
"eraseAfter": null,
"createdAt": "2026-10-02T06:14:22.418Z"
}Authorizations
Body
application/json
Send at least one field. Any other field is refused.
Response
The customer as it now is.
A workspace you created for one of your customers.