Change a client

Update a client’s details, or archive them when the work with them has ended.

PUT /desk/clients/{client_id}

Send the client’s details as a whole, as you read them with your change made. A detail you leave out is cleared, apart from your own fields: those you leave out stay as they are, and one you send blank is cleared. A person’s reference never changes.

What to send

version number Required
The version you read. If it’s changed since, you get a 409.
name string Required
Their full name, or the business’s name. Up to 200 characters.
reference string
Your own reference for them. Left out, they get the next one in your numbering.
external_ref string
Their id in the system you’re sending from, so you can find them again.
email string
Their email address.
phone string
A phone number, written however you like.
address object
The address, line by line: line1, line2, town, postcode.
company_number string
For a business, its company number.
owner string
Who looks after the client, as a user_id from List seats.
custom object
Your firm’s own fields, by their id from List fields.
archived boolean
true to archive the client, false to bring them back.
Request
curl -X PUT "https://api.torlie.com/desk/clients/cli_01jd4m2x8r6tq9w3e5y7u1i0pa" \
  -H "Authorization: Bearer $TORLIE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "version": 1,
    "name": "Morag Henderson",
    "email": "[email protected]",
    "phone": "07700 900123",
    "address": {
      "line1": "14 Marchmont Road",
      "town": "Edinburgh",
      "postcode": "EH9 1HY"
    }
  }'

What comes back

The client as it’s now saved, with its new version.

Response 200 OK
{
  "id": "cli_01jd4m2x8r6tq9w3e5y7u1i0pa",
  "kind": "person",
  "name": "Morag Henderson",
  "reference": "HEN001",
  "external_ref": "enquiry-2291",
  "email": "[email protected]",
  "phone": "07700 900123",
  "address": {
    "line1": "14 Marchmont Road",
    "town": "Edinburgh",
    "postcode": "EH9 1HY"
  },
  "company_number": null,
  "owner": "user_01jcz6a9s2d5f8g1h4j7k0l3z6",
  "aml": {
    "id_checked": false,
    "id_link": null,
    "risk": null,
    "checked_by": null,
    "checked_at": null
  },
  "created_at": "2026-11-22T10:14:03Z",
  "archived": false,
  "version": 2,
  "open_matters": 0,
  "signatures_on_file": 0,
  "last_activity": "2026-11-22T10:14:03Z",
  "streams": [],
  "custom": {}
}