Update contact

Change a contact's name, type, email or tax ID.

PATCH https://cotlet.dev/api/v1/holded/contacts/{contact_id}

write

Changes the fields you pass on one contact and leaves the others as they are. It reaches no one and is undone by calling it again with the old value, so it runs without asking first. Documents that are already approved keep the details they were issued with.

Parameters

Parameters: update_contact
NameTypeDescription
contact_id string required string Contact ID from list_contacts.
name string string New contact name.
type enum enum customer, supplier, lead, debtor or creditor.
email string string New email address.
tax_id string string New tax ID.

Request

cURL
curl -X PATCH https://cotlet.dev/api/v1/holded/contacts/contact_8c41d2 \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("holded", "update_contact", {"contact_id":"contact_8c41d2"})
Node.js
const result = await cotlet.call('holded', 'update_contact', {"contact_id":"contact_8c41d2"});
CLI
cotlet call holded update_contact --data '{"contact_id":"contact_8c41d2"}'

Example response

JSON

{
  "contact_id": "c_5f2a91",
  "name": "Northwind Studio",
  "email": "finance@northwind.example",
  "updated": [
    "email"
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.