Delete campaigns bulk

v1
delete
/1/newsletters/{domain}/campaigns

Delete multiple campaigns.

Path parameters

domain
requiredstring
Examples:example

Body Parameters

application/json
filterobject
selectrequiredobject

Response Body

application/json
resultrequiredstring
Possible values:successerrorasynchronous

Result of the HTTP request

Examples:success
datastring

Example request

                <?php
use GuzzleHttp\Client;

$client = new Client();
$headers = [
	'Authorization' => 'Bearer YOUR-TOKEN-HERE',
	'Content-Type' => 'application/json'
];

$body = '{
    "select": {
        "all": true,
        "exclude": [],
        "include": []
    }
}';

$request = new Request('DELETE', 'https://api.infomaniak.com/1/newsletters/{domain}/campaigns', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
            

Example response

application/json
                
                    
{
"result":"success",
"data":"example"
}