contacts
Update contact
Update one or more fields on a contact. Only provided fields are changed.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
contactIdstring
name?string
email?string
company?string
avatarUrl?string
tags?array<string>
isSubscribed?boolean
isBlocked?boolean
notes?string
Response Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.contacts.updateContact({ path: { contactId: 'contact_abc123', }, body: { name: 'Example', email: 'user@example.com', company: 'string', },});console.log(data);{
"success": true,
"contact": {
"id": "string",
"name": "string",
"email": "string",
"company": "string",
"avatarUrl": "string",
"tags": [
"string"
],
"isSubscribed": true,
"isBlocked": true,
"notes": "string",
"updatedAt": "2019-08-24T14:15:22Z"
}
}{
"error": "Unauthorized"
}{
"error": "Not found"
}