Schedule campaign
v1
put
/1/newsletters/{domain}/campaigns/{campaign}/schedule
Schedule a campaign
domain
requiredinteger
Unique identifier of the Domain
Examples:10910
campaign
requiredinteger
Unique identifier of the Campaign
Examples:65848
Body Parameters
application/jsonstarted_atinteger
Timestamp {name}
has been started
Examples:1706531189
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'
];
$body = '{
"started_at": "1706531189"
}';
$request = new Request('PUT', 'https://api.infomaniak.com/1/newsletters/{domain}/campaigns/{campaign}/schedule', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
Example response
application/json
{"result":"success","data":true}