Update a group

v1
put
/1/newsletters/{domain}/groups/{group}

Update a group with new values.

Path parameters

domain
requiredinteger

Unique identifier of the Domain

Examples:77996
group
requiredinteger

Unique identifier of the Group

Examples:20832

Body Parameters

application/json
namerequiredstring

Name of the resource {name}

Examples:example

Response Body

application/json
resultrequiredstring
Possible values:successerrorasynchronous

Result of the HTTP request

Examples:success
dataGroup

Example request

                <?php
use GuzzleHttp\Client;

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

$body = '{
    "name": "example"
}';

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

Example response

application/json
                
                    
{
"result":"success",
"data":{
"id":11621,
"name":"example",
"updated_at":1731352062
}
}