JSON API » bulk » bulk/destinations/delete

Deletes one or all bulk campaign destinations.

Input parameters

Requires authentication and the user role privilege.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
campaignIntegerID of campaign.Yes
allInteger1 to delete all destinations in campaign, 0 to delete only the one specified by dnumber.No0
dnumberStringDestination to delete.Yes, unless all=1 is specified.Empty string.

Either all=1 or dnumber must be specified.

Responses

CodeDescription
204Success.
401The authentication details provided are invalid.
402Your role does not allow this.
404The campaign or destination does not exist, or you do not have permission to delete it.

Data returned

No data is returned.

Example: Deleting a single destination

http://enswitch.example.com/api/json/bulk/destinations/delete/?auth_username=user;auth_password=password;campaign=123;dnumber=2125551234

{ "responses":[ { "code":"204", "key":"", "message":"OK" } ] }

Change history

VersionChanges
3.13Function added.