Delete an opportunity

Delete an opportunity.

 

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 opportunity

 

Example Request & Response


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

 

204 No Content

{
    "message": "Opportunity with id 19 has been delete"
}

 

404 Not Found

{
    "status_code": 404,
    "message": "Opportunity with id 120 not found"
}