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.create_filesystem(data={
"type": latitudesh_python_sdk.PostStorageFilesystemsFilesystemStorageType.FILESYSTEMS,
"attributes": {
"project": "proj_lkg1De6ROvZE5",
"name": "my-data",
},
})
# 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.CreateFilesystem(ctx, operations.PostStorageFilesystemsFilesystemStorageRequestBody{
Data: operations.PostStorageFilesystemsFilesystemStorageData{
Type: operations.PostStorageFilesystemsFilesystemStorageTypeFilesystems,
Attributes: operations.PostStorageFilesystemsFilesystemStorageAttributes{
Project: "proj_lkg1De6ROvZE5",
Name: "my-data",
},
},
})
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.createFilesystem({
data: {
type: "filesystems",
attributes: {
project: "proj_lkg1De6ROvZE5",
name: "my-data",
},
},
});
console.log(result);
}
run();curl --request POST \
--url https://api.latitude.sh/storage/filesystems \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"type": "filesystems",
"attributes": {
"name": "my-data",
"size_in_gb": 1500,
"project": "proj_lkg1De6ROvZE5"
}
}
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
data: {
type: 'filesystems',
attributes: {name: 'my-data', size_in_gb: 1500, project: 'proj_lkg1De6ROvZE5'}
}
})
};
fetch('https://api.latitude.sh/storage/filesystems', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'data' => [
'type' => 'filesystems',
'attributes' => [
'name' => 'my-data',
'size_in_gb' => 1500,
'project' => 'proj_lkg1De6ROvZE5'
]
]
]),
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.post("https://api.latitude.sh/storage/filesystems")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"type\": \"filesystems\",\n \"attributes\": {\n \"name\": \"my-data\",\n \"size_in_gb\": 1500,\n \"project\": \"proj_lkg1De6ROvZE5\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.latitude.sh/storage/filesystems")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {\n \"type\": \"filesystems\",\n \"attributes\": {\n \"name\": \"my-data\",\n \"size_in_gb\": 1500,\n \"project\": \"proj_lkg1De6ROvZE5\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "fs_AW6Q2D9lqKLpr",
"type": "filesystems",
"attributes": {
"name": "my-data",
"size_in_gb": 1500,
"created_at": "2026-01-14T15:57:07.000Z",
"project": {
"id": "proj_lkg1De6ROvZE5",
"name": "Small Leather Plate",
"slug": "small-leather-plate",
"description": "Awesome Marble Table",
"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_13ljzVvQY2c2YN4lnMexSm79WgA",
"name": "592 Team",
"slug": "592-team",
"description": "592 Team",
"address": "247 Russ Station, New Freddy, OK 97400-4162",
"status": "verified",
"currency": {
"id": "cur_AW6Q2D9lqKLpr",
"code": "BRL",
"name": "Brazilian Real",
"currency_id": null
}
}
}
}
}{
"errors": [
{
"code": "STORAGE_CREATION_FROZEN",
"status": "503",
"title": "Storage creation frozen",
"detail": "New filesystem creation is temporarily unavailable.",
"meta": {}
}
]
}Filesystem Storage
Create filesystem
Allows you to add persistent storage to a project. These filesystems can be used to store data across your servers.
POST
/
storage
/
filesystems
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.create_filesystem(data={
"type": latitudesh_python_sdk.PostStorageFilesystemsFilesystemStorageType.FILESYSTEMS,
"attributes": {
"project": "proj_lkg1De6ROvZE5",
"name": "my-data",
},
})
# 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.CreateFilesystem(ctx, operations.PostStorageFilesystemsFilesystemStorageRequestBody{
Data: operations.PostStorageFilesystemsFilesystemStorageData{
Type: operations.PostStorageFilesystemsFilesystemStorageTypeFilesystems,
Attributes: operations.PostStorageFilesystemsFilesystemStorageAttributes{
Project: "proj_lkg1De6ROvZE5",
Name: "my-data",
},
},
})
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.createFilesystem({
data: {
type: "filesystems",
attributes: {
project: "proj_lkg1De6ROvZE5",
name: "my-data",
},
},
});
console.log(result);
}
run();curl --request POST \
--url https://api.latitude.sh/storage/filesystems \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"type": "filesystems",
"attributes": {
"name": "my-data",
"size_in_gb": 1500,
"project": "proj_lkg1De6ROvZE5"
}
}
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
data: {
type: 'filesystems',
attributes: {name: 'my-data', size_in_gb: 1500, project: 'proj_lkg1De6ROvZE5'}
}
})
};
fetch('https://api.latitude.sh/storage/filesystems', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'data' => [
'type' => 'filesystems',
'attributes' => [
'name' => 'my-data',
'size_in_gb' => 1500,
'project' => 'proj_lkg1De6ROvZE5'
]
]
]),
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.post("https://api.latitude.sh/storage/filesystems")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"type\": \"filesystems\",\n \"attributes\": {\n \"name\": \"my-data\",\n \"size_in_gb\": 1500,\n \"project\": \"proj_lkg1De6ROvZE5\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.latitude.sh/storage/filesystems")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {\n \"type\": \"filesystems\",\n \"attributes\": {\n \"name\": \"my-data\",\n \"size_in_gb\": 1500,\n \"project\": \"proj_lkg1De6ROvZE5\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "fs_AW6Q2D9lqKLpr",
"type": "filesystems",
"attributes": {
"name": "my-data",
"size_in_gb": 1500,
"created_at": "2026-01-14T15:57:07.000Z",
"project": {
"id": "proj_lkg1De6ROvZE5",
"name": "Small Leather Plate",
"slug": "small-leather-plate",
"description": "Awesome Marble Table",
"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_13ljzVvQY2c2YN4lnMexSm79WgA",
"name": "592 Team",
"slug": "592-team",
"description": "592 Team",
"address": "247 Russ Station, New Freddy, OK 97400-4162",
"status": "verified",
"currency": {
"id": "cur_AW6Q2D9lqKLpr",
"code": "BRL",
"name": "Brazilian Real",
"currency_id": null
}
}
}
}
}{
"errors": [
{
"code": "STORAGE_CREATION_FROZEN",
"status": "503",
"title": "Storage creation frozen",
"detail": "New filesystem creation is temporarily unavailable.",
"meta": {}
}
]
}Was this page helpful?
⌘I