Update Customer

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}

Path parameters

idstringrequired
The customer's id (org_…), as Create Customer answered.

Request body

namestring
The customer's name.
externalIdstring | null
Your own id for this customer; null clears it.
metadataobject
Merged into what the customer has: keys you leave out are kept, a key set to null is removed. Values are strings (up to 500 characters), numbers or booleans; at most 50 keys and 8 KB once merged.
timezonestring
An IANA time zone. It cannot be cleared, only changed.
allottedCallLinesinteger | null
How many of your call lines this customer may use at once; null for no cap. Range: 0–.

Example request

bash
curl -X PATCH "https://app.katexs.com/api/v1/customers/{id}" \
  -H "Authorization: Bearer $KATEXS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Sunrise Dental Clinic Pvt Ltd",
  "allottedCallLines": 3,
  "metadata": {
    "tier": null,
    "region": "west"
  }
}'

Responses

StatusDescription
200The customer as it now is.
400A field is wrong or unknown, the body changes nothing, or the merged metadata is over 50 keys or 8 KB.
401The key is missing, wrong or revoked. The answer is always the same, whichever it is.
403The key's access level (read-only or build) does not allow this request, the plan does not include it, or a customer's key named another workspace in Katexs-Workspace. code says which: key_scope_read, key_scope_build, workspace_header_forbidden, or forbidden.
404You have no customer with that id. Another developer's customer reads the same.
409Another of your customers already has that externalId, or your workspace is a white-label reseller.
410The customer was deleted. Restore it first.
429Over a per-minute limit. Wait for Retry-After seconds. code and limit say which limit: rate_limit_resources (240 requests a minute for the workspace), rate_limit_family (2,400 across a developer's customers), rate_limit_calls, rate_limit_messages, rate_limit_codes, rate_limit_code_recipient, concurrent_calls or number_daily_limit.

Response fields

idstringrequired
The customer's id (org_…). Send it as Katexs-Workspace to act inside this customer.
namestringrequired
The customer's name.
externalIdstring | nullrequired
Your own id for this customer, unique among your customers; null when you gave none.
metadataobjectrequired
Your own flat key-value data about the customer: up to 50 keys of 1-40 characters, each value a string (up to 500 characters), a number or a boolean. No nested objects or lists; 8 KB in all.
timezonestringrequired
The customer's IANA time zone; every date its console shows is in it.
allottedCallLinesinteger | nullrequired
How many of your call lines this customer may use at once; null for no cap. Range: 0–.
archivedAtstring (date-time) | nullrequired
When the customer was deleted; null while it is live.
eraseAfterstring (date-time) | nullrequired
When a deleted customer will be erased for good (30 days after deletion); null while it is live.
createdAtstring (date-time)required
When the customer was created.
200 response
{
  "id": "org_5b2f9c1e-8a4d-4f7b-9e3a-2c6d1f0a7b84",
  "name": "Sunrise Dental Clinic Pvt Ltd",
  "externalId": "clinic-0042",
  "metadata": {
    "city": "Austin",
    "seats": 3,
    "region": "west"
  },
  "timezone": "Asia/Kolkata",
  "allottedCallLines": 3,
  "archivedAt": null,
  "eraseAfter": null,
  "createdAt": "2026-10-02T06:14:22.418Z"
}

Last updated November 2026 · Found a problem? Email support@katexs.com