Delete a Pipeline

You can only delete a pipeline if the pipeline doesn't contain any opportunity statuses.

 

Request Path Parameters
Parameter Type Required Description
org_id number Yes The unique identifier of your organization
id number Yes The unique identifier of the pipeline

Example Request & Response


$ curl https://api.custerem.com/<org_id>/opportunities/pipelines/<id>/ \
-X DELETE \
-H 'Authorization: X-API-KEY <Your API Key>' \
-H 'Content-Type: application/json' \

 

204 No Content

{
    "message": "Pipeline with id 3 has been deleted"
}

 

404 Not Found

{
    "status_code": 404,
    "message": "Pipeline with id 4 not found"
}

 

400 Bad Request

{
    "status_code": 404,
    "message": "Please move or delete opportunity statuses from the pipeline before deleting."
}