PATCH
/
contacts
/
{CONTACT_ID}
cURL
curl --request PATCH \
  --url https://api.alpharun.com/api/v1/contacts/{CONTACT_ID} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "[email protected]",
  "phone_number": "<string>",
  "ext_id": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "custom_fields": {
    "set": [
      {
        "key": "<string>",
        "value": "<string>"
      }
    ],
    "remove": [
      "<string>"
    ]
  }
}'
{
  "id": "<string>",
  "email": "[email protected]",
  "phone_number": "<string>",
  "ext_id": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "custom_fields": [
    {
      "key": "<string>",
      "value": "<string>",
      "type": "<string>",
      "display_name": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json

At least one of email, phone number and ext id must be not null on the contact.

The body is of type object.

Response

200
application/json

Contact updated successfully

The response is of type object.