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
| Name | Type | Description |
|---|---|---|
| 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 -X PATCH https://cotlet.dev/api/v1/holded/contacts/contact_8c41d2 \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("holded", "update_contact", {"contact_id":"contact_8c41d2"}) const result = await cotlet.call('holded', 'update_contact', {"contact_id":"contact_8c41d2"}); cotlet call holded update_contact --data '{"contact_id":"contact_8c41d2"}' Example response
{
"contact_id": "c_5f2a91",
"name": "Northwind Studio",
"email": "finance@northwind.example",
"updated": [
"email"
]
}