Change a contact
update_contactChanges a contact that is already there, by its id from list_contacts: its name, contact types, email, phone numbers, website, addresses, IRD number or notes. contact_types replaces the types it has now, so include the ones it keeps. A contractor's PAYE salary and ACC classifications have their own tools. Give only what changes: every parameter left out keeps the value the record has now. Read the record first, and confirm the change with the person before making it. Only for an organisation where this connection may add and change records (list_organisations says which). The answer is the changed contact.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | A business's name. | |
| clear | No | Optional fields to empty, by parameter name, any of: name, first_name, last_name, email, phone, mobile, website, physical_address_line, postal_address_line, ird_number, notes. | |
| No | Email address. | ||
| notes | No | Free text kept with the contact. | |
| phone | No | Phone number. | |
| mobile | No | Mobile phone number. | |
| website | No | Website address. | |
| last_name | No | A person's last name. | |
| contact_id | Yes | The contact's id, from list_contacts. | |
| first_name | No | A person's first name. | |
| ird_number | No | Their IRD number, as the person gives it. | |
| contact_types | No | Every type the contact has from now on, one or more of: supplier, tenant, contractor, property-owner, landlord or accountant, or a type the organisation added itself (list_choices gives every one with its label). | |
| organisation_id | No | The id of the organisation to use, from list_organisations. Leave it out when the connection covers only one organisation; it is required when it covers more than one. | |
| postal_address_line | No | Postal address, on one line. | |
| physical_address_line | No | Street address, on one line. |