Python (SDK)
import latitudesh_python_sdk
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.filesystem_storage.update_filesystem(filesystem_id="fs_7vYAZqGBdMQ94", data={
"id": "fs_7vYAZqGBdMQ94",
"type": latitudesh_python_sdk.PatchStorageFilesystemsFilesystemStorageType.FILESYSTEMS,
"attributes": {
"size_in_gb": 1501,
},
})
# Handle response
print(res)package main
import(
"context"
"os"
latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
"github.com/latitudesh/latitudesh-go-sdk/models/operations"
"log"
)
func main() {
ctx := context.Background()
s := latitudeshgosdk.New(
latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
)
res, err := s.FilesystemStorage.UpdateFilesystem(ctx, "fs_7vYAZqGBdMQ94", operations.PatchStorageFilesystemsFilesystemStorageRequestBody{
Data: operations.PatchStorageFilesystemsFilesystemStorageData{
ID: "fs_7vYAZqGBdMQ94",
Type: operations.PatchStorageFilesystemsFilesystemStorageTypeFilesystems,
Attributes: operations.PatchStorageFilesystemsFilesystemStorageAttributes{
SizeInGb: latitudeshgosdk.Pointer[int64](1501),
},
},
})
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.filesystemStorage.updateFilesystem({
filesystemId: "fs_7vYAZqGBdMQ94",
requestBody: {
data: {
id: "fs_7vYAZqGBdMQ94",
type: "filesystems",
attributes: {
sizeInGb: 1501,
},
},
},
});
console.log(result);
}
run();curl --request PATCH \
--url https://api.latitude.sh/storage/filesystems/{filesystem_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"id": "fs_7vYAZqGBdMQ94",
"type": "filesystems",
"attributes": {
"size_in_gb": 1501
}
}
}
'const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
data: {id: 'fs_7vYAZqGBdMQ94', type: 'filesystems', attributes: {size_in_gb: 1501}}
})
};
fetch('https://api.latitude.sh/storage/filesystems/{filesystem_id}', 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://api.latitude.sh/storage/filesystems/{filesystem_id}",
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([
'data' => [
'id' => 'fs_7vYAZqGBdMQ94',
'type' => 'filesystems',
'attributes' => [
'size_in_gb' => 1501
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.patch("https://api.latitude.sh/storage/filesystems/{filesystem_id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"id\": \"fs_7vYAZqGBdMQ94\",\n \"type\": \"filesystems\",\n \"attributes\": {\n \"size_in_gb\": 1501\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.latitude.sh/storage/filesystems/{filesystem_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {\n \"id\": \"fs_7vYAZqGBdMQ94\",\n \"type\": \"filesystems\",\n \"attributes\": {\n \"size_in_gb\": 1501\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "fs_7vYAZqGBdMQ94",
"type": "filesystems",
"attributes": {
"name": "Lightweight Aluminum Computer",
"size_in_gb": 1501,
"created_at": "2026-01-14T15:57:08.000Z",
"project": {
"id": "proj_1R3zq2VvqWxyn",
"name": "Enormous Iron Plate",
"slug": "enormous-iron-plate",
"description": "Durable Wooden Shoes",
"billing_type": "Normal",
"billing_method": "Normal",
"bandwidth_alert": false,
"environment": null,
"billing": {
"subscription_id": null,
"type": "Normal",
"method": "Normal"
},
"stats": {
"databases": 0,
"ip_addresses": 0,
"prefixes": 0,
"servers": 0,
"storages": 1,
"virtual_machines": 0,
"vlans": 0
}
},
"team": {
"id": "team_6RZQo811RrT97mgazl8wf1Ryxxo",
"name": "606 Team",
"slug": "606-team",
"description": "606 Team",
"address": "Apt. 122 58068 Bibi Prairie, Ardithport, NH 77015-2685",
"status": "verified",
"currency": {
"id": "cur_AW6Q2D9lqKLpr",
"code": "BRL",
"name": "Brazilian Real",
"currency_id": null
}
}
}
}
}Filesystem Storage
Update filesystem
Allow you to upgrade the size of a filesystem.
PATCH
/
storage
/
filesystems
/
{filesystem_id}
Python (SDK)
import latitudesh_python_sdk
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.filesystem_storage.update_filesystem(filesystem_id="fs_7vYAZqGBdMQ94", data={
"id": "fs_7vYAZqGBdMQ94",
"type": latitudesh_python_sdk.PatchStorageFilesystemsFilesystemStorageType.FILESYSTEMS,
"attributes": {
"size_in_gb": 1501,
},
})
# Handle response
print(res)package main
import(
"context"
"os"
latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
"github.com/latitudesh/latitudesh-go-sdk/models/operations"
"log"
)
func main() {
ctx := context.Background()
s := latitudeshgosdk.New(
latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
)
res, err := s.FilesystemStorage.UpdateFilesystem(ctx, "fs_7vYAZqGBdMQ94", operations.PatchStorageFilesystemsFilesystemStorageRequestBody{
Data: operations.PatchStorageFilesystemsFilesystemStorageData{
ID: "fs_7vYAZqGBdMQ94",
Type: operations.PatchStorageFilesystemsFilesystemStorageTypeFilesystems,
Attributes: operations.PatchStorageFilesystemsFilesystemStorageAttributes{
SizeInGb: latitudeshgosdk.Pointer[int64](1501),
},
},
})
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.filesystemStorage.updateFilesystem({
filesystemId: "fs_7vYAZqGBdMQ94",
requestBody: {
data: {
id: "fs_7vYAZqGBdMQ94",
type: "filesystems",
attributes: {
sizeInGb: 1501,
},
},
},
});
console.log(result);
}
run();curl --request PATCH \
--url https://api.latitude.sh/storage/filesystems/{filesystem_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"id": "fs_7vYAZqGBdMQ94",
"type": "filesystems",
"attributes": {
"size_in_gb": 1501
}
}
}
'const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
data: {id: 'fs_7vYAZqGBdMQ94', type: 'filesystems', attributes: {size_in_gb: 1501}}
})
};
fetch('https://api.latitude.sh/storage/filesystems/{filesystem_id}', 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://api.latitude.sh/storage/filesystems/{filesystem_id}",
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([
'data' => [
'id' => 'fs_7vYAZqGBdMQ94',
'type' => 'filesystems',
'attributes' => [
'size_in_gb' => 1501
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.patch("https://api.latitude.sh/storage/filesystems/{filesystem_id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"id\": \"fs_7vYAZqGBdMQ94\",\n \"type\": \"filesystems\",\n \"attributes\": {\n \"size_in_gb\": 1501\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.latitude.sh/storage/filesystems/{filesystem_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {\n \"id\": \"fs_7vYAZqGBdMQ94\",\n \"type\": \"filesystems\",\n \"attributes\": {\n \"size_in_gb\": 1501\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "fs_7vYAZqGBdMQ94",
"type": "filesystems",
"attributes": {
"name": "Lightweight Aluminum Computer",
"size_in_gb": 1501,
"created_at": "2026-01-14T15:57:08.000Z",
"project": {
"id": "proj_1R3zq2VvqWxyn",
"name": "Enormous Iron Plate",
"slug": "enormous-iron-plate",
"description": "Durable Wooden Shoes",
"billing_type": "Normal",
"billing_method": "Normal",
"bandwidth_alert": false,
"environment": null,
"billing": {
"subscription_id": null,
"type": "Normal",
"method": "Normal"
},
"stats": {
"databases": 0,
"ip_addresses": 0,
"prefixes": 0,
"servers": 0,
"storages": 1,
"virtual_machines": 0,
"vlans": 0
}
},
"team": {
"id": "team_6RZQo811RrT97mgazl8wf1Ryxxo",
"name": "606 Team",
"slug": "606-team",
"description": "606 Team",
"address": "Apt. 122 58068 Bibi Prairie, Ardithport, NH 77015-2685",
"status": "verified",
"currency": {
"id": "cur_AW6Q2D9lqKLpr",
"code": "BRL",
"name": "Brazilian Real",
"currency_id": null
}
}
}
}
}Was this page helpful?
⌘I