Update a Swiss Backup

v1
swiss-backup
put
/1/swiss_backups/{swiss_backup_id}

Update the given Swiss Backup product

Path parameters

swiss_backup_id
requiredinteger

Unique identifier of the Swiss Backup to request.

Examples:43948

Query parameters

account_idrequiredinteger
Examples:27134

Body Parameters

application/json
periodicitynumber
Possible values:0123

Commitment period (in years)

Examples:1
storage_reserved_acronisinteger

Allocated storage size for Acronis (Bytes)

Examples:100000000

Response Body

application/json
resultrequiredstring
Possible values:successerrorasynchronous

Result of the HTTP request

Examples:success
dataSwiss Backup

Example request

                <?php
use GuzzleHttp\Client;

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

$body = '{
    "periodicity": "1",
    "storage_reserved_acronis": "100000000"
}';

$request = new Request('PUT', 'https://api.infomaniak.com/1/swiss_backups/{swiss_backup_id}?account_id=27134', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
            

Example response

application/json
                
                    
{
"result":"success",
"data":{
"id":37306,
"account_id":96418,
"service_id":88386,
"service_name":"example",
"customer_name":"SwissBackup Slot",
"internal_name":"example",
"created_at":1666354846,
"expired_at":1731675495,
"version":38274,
"has_maintenance":true,
"is_locked":true,
"has_operation_in_progress":false,
"tags":[
{
"id":1234,
"name":"My tag name",
"color":4
}
],
"unique_id":10009,
"is_free":false,
"is_zero_price":false,
"is_trial":false,
"rights":{
"technical":false,
"statistic":false,
"check":false,
"sale":false
},
"nb_slots":5,
"max_slots":7,
"nb_unallocated_slots":0,
"nb_unallocated_mobile_workstation":0,
"size":200000000000,
"is_demo":"false",
"is_migrated":"false",
"new_interface":"false",
"account_name":"Infomaniak SA",
"storage_reserved":200000000000
}
}