Skip to main content
PATCH
/
v1
/
contacts
/
{contact_id}
Update contact
curl --request PATCH \
  --url https://dovetail.com/api/v1/contacts/{contact_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "John Smith",
  "email": "john@dovetail.com",
  "fields": [
    {
      "label": "salesforce_id",
      "value": "003XX000004TmiQQAS"
    }
  ]
}'
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "created_at": "<string>",
    "fields": [
      {
        "label": "<string>",
        "value": "<string>",
        "type": "BOOLEAN"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

contact_id
string
required

Unique identifier of the contact.

Body

application/json

Body

name
string

The contact's name.

Maximum length: 1000
Example:

"John Smith"

email
string<email>

The contact's email.

Example:

"john@dovetail.com"

fields
object[]

Custom field data for the contact (key-value pairs).

Example:
[
{
"label": "salesforce_id",
"value": "003XX000004TmiQQAS"
}
]

Response

200

data
object
required
⌘I