Skip to main content
PATCH
/
v1
/
contacts
/
{contactId}
Update contact
curl --request PATCH \
  --url https://api.zavu.dev/v1/contacts/{contactId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "defaultChannel": "sms",
  "metadata": {}
}
'
{
  "id": "<string>",
  "phoneNumber": "+56912345678",
  "countryCode": "CL",
  "profileName": "John Doe",
  "availableChannels": [
    "<string>"
  ],
  "defaultChannel": "sms",
  "verified": true,
  "metadata": {},
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

contactId
string
required

Body

application/json
defaultChannel
enum<string> | null

Preferred channel for this contact. Set to null to clear.

Available options:
sms,
whatsapp,
email
metadata
object

Response

Contact updated.

id
string
required
phoneNumber
string
required

E.164 phone number.

Example:

"+56912345678"

countryCode
string
Example:

"CL"

profileName
string | null

Contact's WhatsApp profile name. Only available for WhatsApp contacts.

Example:

"John Doe"

availableChannels
string[]

List of available messaging channels for this contact.

defaultChannel
enum<string>

Preferred channel for this contact.

Available options:
sms,
whatsapp,
email
verified
boolean

Whether this contact has been verified.

metadata
object
createdAt
string<date-time>
updatedAt
string<date-time>