Skip to main content
PATCH
/
storage
/
filesystems
/
{filesystem_id}
Typescript (SDK)
import { Latitudesh } from "latitudesh-typescript-sdk";

const latitudesh = new Latitudesh({
  bearer: process.env["LATITUDESH_BEARER"] ?? "",
});

async function run() {
  const result = await latitudesh.storage.updateFilesystem({
    filesystemId: "fs_7vYAZqGBdMQ94",
    requestBody: {
      data: {
        id: "fs_7vYAZqGBdMQ94",
        type: "filesystems",
        attributes: {
          sizeInGb: 1501,
        },
      },
    },
  });

  console.log(result);
}

run();
{
  "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
        }
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Path Parameters

filesystem_id
string
required

Body

data
object
required

Response

200 - application/vnd.api+json

Success

data
object