Authorizations
Path Parameters
Body
Response
200 - application/vnd.api+json
Success
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": "Mediocre Cotton Shoes",
"size_in_gb": 1501,
"created_at": "2025-07-16T18:37:10.000Z",
"project": {
"id": "proj_lkg1De6ROvZE5",
"name": "Mediocre Wool Car",
"slug": "mediocre-wool-car",
"description": "Mediocre Cotton Gloves",
"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_emkQ4BokWLHNGo9YabE2S3JWWex",
"name": "566 Team",
"slug": "566-team",
"description": "566 Team",
"address": "Apt. 855 9729 Coreen Avenue, Tommymouth, MA 12761-5770",
"status": "verified",
"currency": {
"id": "cur_AW6Q2D9lqKLpr",
"code": "BRL",
"name": "Brazilian Real",
"currency_id": null
}
}
}
}
}Allow you to upgrade the size of a filesystem.
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": "Mediocre Cotton Shoes",
"size_in_gb": 1501,
"created_at": "2025-07-16T18:37:10.000Z",
"project": {
"id": "proj_lkg1De6ROvZE5",
"name": "Mediocre Wool Car",
"slug": "mediocre-wool-car",
"description": "Mediocre Cotton Gloves",
"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_emkQ4BokWLHNGo9YabE2S3JWWex",
"name": "566 Team",
"slug": "566-team",
"description": "566 Team",
"address": "Apt. 855 9729 Coreen Avenue, Tommymouth, MA 12761-5770",
"status": "verified",
"currency": {
"id": "cur_AW6Q2D9lqKLpr",
"code": "BRL",
"name": "Brazilian Real",
"currency_id": null
}
}
}
}
}Show child attributes
Success
Show child attributes
Was this page helpful?