/v1/accounts/{accountId}/campaignsDeletes several campaigns in a single request. Only campaigns in Draft, Canceled or Finished state can be deleted. If any of the campaigns can't be deleted, the request fails and no campaign is deleted.
ID of your SIP Caller account. See Account ID.
A JSON array with the IDs of the campaigns to delete. The IDs can't be repeated.
Returns an array with the IDs of the deleted campaigns. If none of the campaigns exist, returns 404 Not Found.
/v1/accounts/ACCOUNT_ID/campaigns
curl -X DELETE 'https://api.sipcaller.com/v1/accounts/ACCOUNT_ID/campaigns' \
-H 'Authorization: Bearer API_KEY_TOKEN' \
-H 'Content-Type: application/json' \
-d '[
"CAMPAIGN_ID_1",
"CAMPAIGN_ID_2"
]'Response
200 OK
[
"CAMPAIGN_ID_1",
"CAMPAIGN_ID_2"
]