curl --request PATCH \
--url https://console.advinservers.com/api/v1/client/snapshots/storages/{snapshotStorage} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Lambda Complex snapshots"
}
'import requests
url = "https://console.advinservers.com/api/v1/client/snapshots/storages/{snapshotStorage}"
payload = { "name": "Lambda Complex snapshots" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Lambda Complex snapshots'})
};
fetch('https://console.advinservers.com/api/v1/client/snapshots/storages/{snapshotStorage}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://console.advinservers.com/api/v1/client/snapshots/storages/{snapshotStorage}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Lambda Complex snapshots'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://console.advinservers.com/api/v1/client/snapshots/storages/{snapshotStorage}"
payload := strings.NewReader("{\n \"name\": \"Lambda Complex snapshots\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://console.advinservers.com/api/v1/client/snapshots/storages/{snapshotStorage}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Lambda Complex snapshots\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.advinservers.com/api/v1/client/snapshots/storages/{snapshotStorage}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Lambda Complex snapshots\"\n}"
response = http.request(request)
puts response.read_body{
"uuid": "9e83397b-d88e-43ae-bfb7-a8c2e6eda853",
"name": "Lambda Complex snapshots",
"status": "active",
"status_label": "Active",
"progress_message": null,
"needs_funds": false,
"size_gb": 200,
"capacity": 214748364800,
"used": 85899345920,
"remaining": 128849018880,
"snapshots_count": 1,
"is_suspended": false,
"is_usable": true,
"billing": {
"service_id": 7436,
"invoice_id": 16388,
"invoice_url": null,
"checkout_uuid": null,
"invoice_status": "Paid",
"amount": "3.00",
"currency": "USD",
"billing_cycle": "Monthly",
"payment_due_at": null,
"payment_window_minutes": 30,
"paid_at": "2026-06-03T17:26:52+00:00"
},
"cancellation_type": null,
"cancellation_requested_at": null,
"autopay": false,
"can_cancel": false,
"can_resize": true,
"pending_resize": null,
"created_at": "2026-06-03T17:26:40+00:00"
}{
"message": "Unauthenticated."
}{
"message": "This API key is not allowed to do that in this team. It needs the \"snapshot.delete\" permission."
}{
"message": "Not found."
}{
"message": "The name field is required.",
"errors": {}
}{
"message": "Too Many Attempts."
}Rename a snapshot storage
Overview
Renames the storage. Send a name of 1 to 64 characters. Nothing else changes.
Permissions
Requires the snapshot.update (Move snapshots and rename storage) permission for the selected team. Resources outside that team return 404.
curl --request PATCH \
--url https://console.advinservers.com/api/v1/client/snapshots/storages/{snapshotStorage} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Lambda Complex snapshots"
}
'import requests
url = "https://console.advinservers.com/api/v1/client/snapshots/storages/{snapshotStorage}"
payload = { "name": "Lambda Complex snapshots" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Lambda Complex snapshots'})
};
fetch('https://console.advinservers.com/api/v1/client/snapshots/storages/{snapshotStorage}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://console.advinservers.com/api/v1/client/snapshots/storages/{snapshotStorage}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Lambda Complex snapshots'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://console.advinservers.com/api/v1/client/snapshots/storages/{snapshotStorage}"
payload := strings.NewReader("{\n \"name\": \"Lambda Complex snapshots\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://console.advinservers.com/api/v1/client/snapshots/storages/{snapshotStorage}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Lambda Complex snapshots\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.advinservers.com/api/v1/client/snapshots/storages/{snapshotStorage}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Lambda Complex snapshots\"\n}"
response = http.request(request)
puts response.read_body{
"uuid": "9e83397b-d88e-43ae-bfb7-a8c2e6eda853",
"name": "Lambda Complex snapshots",
"status": "active",
"status_label": "Active",
"progress_message": null,
"needs_funds": false,
"size_gb": 200,
"capacity": 214748364800,
"used": 85899345920,
"remaining": 128849018880,
"snapshots_count": 1,
"is_suspended": false,
"is_usable": true,
"billing": {
"service_id": 7436,
"invoice_id": 16388,
"invoice_url": null,
"checkout_uuid": null,
"invoice_status": "Paid",
"amount": "3.00",
"currency": "USD",
"billing_cycle": "Monthly",
"payment_due_at": null,
"payment_window_minutes": 30,
"paid_at": "2026-06-03T17:26:52+00:00"
},
"cancellation_type": null,
"cancellation_requested_at": null,
"autopay": false,
"can_cancel": false,
"can_resize": true,
"pending_resize": null,
"created_at": "2026-06-03T17:26:40+00:00"
}{
"message": "Unauthenticated."
}{
"message": "This API key is not allowed to do that in this team. It needs the \"snapshot.delete\" permission."
}{
"message": "Not found."
}{
"message": "The name field is required.",
"errors": {}
}{
"message": "Too Many Attempts."
}Authorizations
Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.
Path Parameters
The snapshot storage UUID
"9e83397b-d88e-43ae-bfb7-a8c2e6eda853"
Body
Send a JSON object containing the fields below. Required fields are marked in the schema.
The name shown to customers.
1 - 64Response
The record, as a JSON object. There is no envelope.
A snapshot storage: what it is, how full it is, what it costs, and what may be done with it right now.
The uuid UUID.
"9e83397b-d88e-43ae-bfb7-a8c2e6eda853"
The name shown to customers.
"Storage 1"
The value of status.
pending_payment, active, pending_cancellation, terminating, terminated, expired, payment_review "active"
The status in the customer's words, with suspension first.
"Active"
What the purchase is waiting on, when it is waiting on something.
null
Whether the purchase is waiting for the account to hold enough credit.
false
The size bought, in whole GiB.
200
The size bought, in bytes.
214748364800
What the finished snapshots in it occupy, in bytes.
85899345920
Capacity less used, never below nought, in bytes.
128849018880
The number of snapshots count.
1
Whether billing has suspended it. Its snapshots are frozen while it is.
false
Whether snapshots may be taken into, restored from, deleted from or moved in or out of it.
true
The value of billing.
Show child attributes
Show child attributes
{
"service_id": 7436,
"invoice_id": 16388,
"invoice_url": null,
"checkout_uuid": null,
"invoice_status": "Paid",
"amount": "3.00",
"currency": "USD",
"billing_cycle": "Monthly",
"payment_due_at": null,
"payment_window_minutes": 30,
"paid_at": "2026-06-03T17:26:52+00:00"
}
The value of cancellation_type.
immediate, end_of_billing, null null
The date and time for cancellation requested at, in UTC.
null
The value of autopay.
false
Whether the customer can cancel.
false
Whether the customer can resize.
true
A change of size still being paid for or written to billing.
Show child attributes
Show child attributes
null
The date and time for created at, in UTC.
"2026-06-03T17:26:40+00:00"