Skip to main content
POST
/
servers
/
{server_id}
/
schedule_deletion
Go (SDK)
package main

import(
	"context"
	"os"
	latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
	"log"
)

func main() {
    ctx := context.Background()

    s := latitudeshgosdk.New(
        latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
    )

    res, err := s.Servers.ScheduleDeletion(ctx, "sv_GMy1Db2NDN50m")
    if err != nil {
        log.Fatal(err)
    }
    if res.ServerScheduleDeletion != nil {
        // handle response
    }
}
{
  "data": {
    "id": "sv_GMy1Db2NDN50m",
    "type": "schedule_deletion",
    "attributes": {
      "server_id": "sv_GMy1Db2NDN50m",
      "scheduled_deletion_at": "2025-08-16T12:37:02Z"
    }
  },
  "meta": {}
}

Authorizations

Authorization
string
header
required

Path Parameters

server_id
string
required

Response

201 - application/vnd.api+json

Created

data
object