BoldSales

API Documentation

Lock a pipeline record

patch/api/v1/pipelines/records/{recordId}/lock

Locks a specific pipeline record using its unique identifier. Locking a record prevents further modifications until the record is unlocked. A reason for locking the record must be provided.

Code snippet

curl -X 'PATCH' \
  'https://{yourdomain}/api/v1/pipelines/records/{recordId}/lock' \
  -H 'accept: text/plain; x-api-version=1.0' \
  -H 'x-api-key: {your API key}' \
  -H 'Content-Type: application/json; x-api-version=1.0' \
  -d '{
    "reason": "Record locked for compliance review."
  }'

Path parameters

recordIdintegerRequiredThe unique identifier of the pipeline record to lock.

Request body

reasonstringRequiredThe reason for locking the pipeline record. This property is mandatory and must be provided in the request body.

Example response

200 Success

{
  "message": "Pipeline record locked successfully."
}