PATCH
/
v1
/
contacts
/
{id}
curl --request PATCH \
  --url https://api.openphone.com/v1/contacts/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "externalId": "664d0db69fcac7cf2e6ec",
  "source": "public-api",
  "defaultFields": {
    "company": "OpenPhone",
    "emails": [
      {
        "name": "company email",
        "value": "[email protected]",
        "id": "acb123"
      }
    ],
    "firstName": "John",
    "lastName": "Doe",
    "phoneNumbers": [
      {
        "name": "company phone",
        "value": "+15555555555",
        "id": "acb123"
      }
    ],
    "role": "Sales"
  },
  "customFields": [
    {
      "key": "inbound-lead",
      "id": "66d0d87d534de8fd1c433cec3",
      "value": [
        "option1",
        "option2"
      ]
    }
  ]
}'
{
  "data": {
    "id": "664d0db69fcac7cf2e6ec",
    "externalId": "664d0db69fcac7cf2e6ec",
    "source": "public-api",
    "defaultFields": {
      "company": "OpenPhone",
      "emails": [
        {
          "name": "company email",
          "value": "[email protected]",
          "id": "acb123"
        }
      ],
      "firstName": "John",
      "lastName": "Doe",
      "phoneNumbers": [
        {
          "name": "company phone",
          "value": "+12345678901",
          "id": "acb123"
        }
      ],
      "role": "Sales"
    },
    "customFields": [
      {
        "name": "Inbound Lead",
        "key": "inbound-lead",
        "type": "multi-select",
        "value": [
          "option1",
          "option2"
        ]
      }
    ],
    "createdAt": "2022-01-01T00:00:00Z",
    "updatedAt": "2022-01-01T00:00:00Z",
    "createdByUserId": "US123abc"
  }
}

Path Parameters

id
string
required

The unique identifier of the contact.

Body

application/json
externalId
string | null

An external identifier of the contact.

Required string length: 1 - 75
source
string | null

Indicates how the contact was created or where it originated from.

Required string length: 1 - 75
defaultFields
object
customFields
object[]

Response

200
application/json
Success
data
object
required

Was this page helpful?