Delete

[POST] .../v1/pipeline/delete

Soft-deletes a CRM pipeline. Use this destructive method to logically remove a CRM pipeline from normal pipeline lists and stop it from being the default pipeline. The method marks the pipeline as deleted and inactive, clears is_default, writes an action log record when a row is affected, invalidates CRM and chat entity-access caches and returns row_affected with changed ids. The request body is required and id must be positive; the method does not physically remove stages or validate whether Lead or Deal rows still reference the pipeline. The caller must have CRM pipeline delete permission; missing body, invalid id, denied access, missing pipeline, database failures, transaction failures, cache invalidation errors and action-log errors are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
id Int64 Required Pipeline ID.

Request Example

{
  "id": 7
}

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result Update Update operation result.

Response Example

{
  "ok": true,
  "result": {
    "row_affected": 1,
    "ids": [
      7
    ]
  }
}