Typescript
import { Latitudesh } from "latitudesh-typescript-sdk"; const latitudesh = new Latitudesh({ bearer: process.env["LATITUDESH_BEARER"] ?? "", }); async function run() { const result = await latitudesh.plans.updateBandwidth({ data: { type: "bandwidth_packages", attributes: { project: "proj_z2A3DVZ3DnawP", quantity: 5, regionSlug: "brazil", }, }, }); console.log(result); } run();
{ "data": { "type": "bandwidth_packages", "attributes": { "project": { "id": "proj_z2A3DVZ3DnawP", "name": "Renner-Rodriguez", "slug": "renner-rodriguez" }, "packages": [ { "region_slug": "united-states", "unit_price": 0.5, "currency": "USD", "contracted": 10, "total_price": 5 }, { "region_slug": "brazil", "unit_price": 4.6, "currency": "USD", "contracted": 0, "total_price": 0 } ] } } }
Allows to increase or decrease bandwidth packages. Only admins and owners can request.
Show child attributes
Success
bandwidth_packages
Was this page helpful?