Skip to main content
PATCH
/
storage
/
filesystems
/
{filesystem_id}
Go (SDK)
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.Storage.UpdateFilesystem(ctx, "fs_7vYAZqGBdMQ94", operations.PatchStorageFilesystemsStorageRequestBody{
        Data: operations.PatchStorageFilesystemsStorageData{
            ID: "fs_7vYAZqGBdMQ94",
            Type: operations.PatchStorageFilesystemsStorageTypeFilesystems,
            Attributes: operations.PatchStorageFilesystemsStorageAttributes{
                SizeInGb: latitudeshgosdk.Pointer[int64](1501),
            },
        },
    })
    if err != nil {
        log.Fatal(err)
    }
    if res.Object != nil {
        // handle response
    }
}
{
  "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