Delete groups
v1
delete
/1/newsletters/{domain}/groups
Delete multiple groups.
Path parameters
domain
requiredinteger
Unique identifier of the Domain
Examples:77679
Body Parameters
application/jsonfilterobject
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}/groups', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
Example response
application/json
{"result":"success","data":"example"}