Delete campaign

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

Delete a campaign

Path parameters

domain
requiredstring
Examples:example
campaign
requiredstring
Examples:example

Response Body

application/json
resultrequiredstring
Possible values:successerrorasynchronous

Result of the HTTP request

Examples:success
databoolean

Example request

                <?php
use GuzzleHttp\Client;

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

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

Example response

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