import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
await latitudesh.servers.reinstall({
serverId: "sv_aNmodj6ydbE8W",
requestBody: {
data: {
type: "reinstalls",
attributes: {
operatingSystem: "ipxe",
hostname: "BRC1",
ipxe: "https://some-host.com/image.ipxe",
},
},
},
});
}
run();