Delete opportunity
DELETE
/api/v1/ext/opportunities/{id}
Delete an opportunity.
Auth: Bearer access_token
Scope: opportunities.write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | number | yes | Opportunity id. |
Responses
| Status | When |
|---|---|
200 | OK |
401 | Missing or invalid token |
403 | Missing scope |
404 | Opportunity does not exist or is not owned by the installer |
RequestResponses
curl -X DELETE "https://backend.mysmsgateway.app/api/v1/ext/opportunities/{id}" \
-H "Authorization: Bearer <ACCESS_TOKEN>"OK
{
"success": true,
"message": "Opportunity deleted"
}Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters
Opportunity id.
Request URL
DELETEhttps://backend.mysmsgateway.app/api/v1/ext/opportunities/%7Bid%7D
Previous
« Change status
Next
List activities »
