BoldSales

API Documentation

Link records to a pipeline record

patch/api/v1/pipelines/records/{recordId}/linked-to-records

Links one or more pipeline records to the specified pipeline record. The linkage is bidirectional, and each linked record can be tagged with one or more relationship labels.

Code snippet

curl -X 'PATCH' \
  'https://{yourdomain}/api/v1/pipelines/records/{recordId}/linked-to-records' \
  -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 '[
    {
      "recordId": 1,
      "relationshipLabelIds": [1, 2]
    },
    {
      "recordId": 2,
      "relationshipLabelIds": [2, 3]
    }
  ]'

Path parameters

recordIdlongRequiredThe unique identifier of the source pipeline record to which the specified records will be linked.

Request body

An array of objects describing the pipeline records to be linked to the source record. Each object contains the target record ID and the relationship labels that describe the association.

recordIdlongRequiredThe unique identifier of the pipeline record to be linked to the source pipeline record.
relationshipLabelIdsarrayA list of relationship label identifiers that describe how the target record is associated with the source record. If omitted, the records are linked without a relationship label.

Example response

200 Success

{
  "message": "Pipeline record(s) linked successfully."
}