Update contact labels of a pipeline record
patch/api/v1/pipelines/records/{recordId}/contacts/labelsUpdates the relationship labels for one or more contacts associated with the specified pipeline record. Each contact can be assigned one or more relationship labels to indicate their association with the pipeline record. This endpoint can be used to add, update, or manage relationship labels for linked contacts when required.
Code snippet
curl -X 'PATCH' \
'https://{yourdomain}/api/v1/pipelines/records/{recordId}/contacts/labels' \
-H 'accept: text/plain; x-api-version=1.0' \
-H 'x-api-key: {your API key}' \
-H 'Content-Type: application/json-patch+json; x-api-version=1.0' \
-d '{
"data": [
{
"contactId": 101,
"relationshipLabels": [1, 2]
},
{
"contactId": 102,
"relationshipLabels": []
}
]
}'
Path parameters
| recordIdlongRequired | The unique identifier of the pipeline record whose linked contacts labels need to be updated. |
Request body
A collection of contact relationship details to be updated. Each item includes the contact ID and the list of relationship labels that should be associated with that contact for the specified pipeline record.
| contactIdlongRequired | The unique identifier of the contact associated with the pipeline record. |
| relationshipLabelsarray | A collection of relationship label identifiers that describe the contact's relationship to the pipeline record. If this field is omitted or contains an empty array, all existing relationship labels associated with the contact will be removed. |
Example response
200 Success
{
"message": "Label(s) updated successfully."
}