Update a customer
PATCH
/v1/customers/{id}
const url = 'https://api.varman.io/v1/customers/example';const options = { method: 'PATCH', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"name":"Acme Corp","website":"https://acme.com","stage":"prospect","notes":{},"ownerMemberId":"mem_abc123"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.varman.io/v1/customers/example \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "name": "Acme Corp", "website": "https://acme.com", "stage": "prospect", "notes": {}, "ownerMemberId": "mem_abc123" }'Updates name, website, stage, notes or owner of a customer. Only the fields sent are changed. Send null to clear optional fields.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Header Parameters
Section titled “Header Parameters”X-Organization-Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
Customer company name
string
Example
Acme Corpwebsite
Customer website
object
Example
https://acme.comstage
Deal or relationship stage
string
notes
Free text notes
object
ownerMemberId
Member ID of the account owner (null clears it)
object
Example
mem_abc123