Skip to main content
POST
/
servers
/
{server_id}
/
reinstall
Typescript (SDK)
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();
{}

Authorizations

Authorization
string
header
required

Path Parameters

server_id
string
required

Body

data
object
required

Response

201 - application/vnd.api+json

Created