PATCH /contacts/v1/contacts
Updates a contact record.
| Name | Type | Description |
|---|---|---|
contactKey | String | The primary address for the contact. You must provide a value for either contactKey or contactID. |
contactID | String | The unique ID of the contact. You must provide a value for either contactKey or contactID. |
attributeSets | Array | Required. An array that contains the data to add to the contact record. |
attributeSets.name | String | Required. The name of the attribute group to add the contact information to. |
attributeSets.items | Array | Required. An array of attribute entries associated with the attribute group. Each item contains the values that define the contact’s information for that group. |
attributeSets.items.values | Array | Required. Name and value pairs that indicate the attribute and its applicable value within the item. |
To update a contact record, issue a PATCH request to the /contacts/v1/contacts endpoint. The body of the request must contain either the contactKey or the contactId property. The attributeSets array contains the data to add to the contact record.
Example Response
After a successful request, the API returns a confirmation of the changes that were made.
If the update request fails, the API returns a 200 OK response that includes information about the failure. In this situation, the value of operationStatus is FAIL, and the resultMessages array contains details of each failure.