---
title: "Terminate a bare metal rental"
method: POST
path: "/v2/alpha/on-demand/bare-metal-rentals/terminate"
tags: ["bare-metal-rentals"]
deprecated: true
---

# Terminate a bare metal rental

`POST /v2/alpha/on-demand/bare-metal-rentals/terminate`

> **Deprecated.**

**Deprecated.** This path is the pre-`/v2/` URL for `/v2/on-demand/bare-metal-rentals/terminate` and is kept only so existing integrations keep working. It behaves identically, responds with a `Sunset` header, and stops being served on 2027-03-01. Move to `/v2/on-demand/bare-metal-rentals/terminate`.

Terminate a bare metal rental

## Request body

- object
  - `rentalId` number, required
  - `reason` string

## Response `200`

Successful response

- object
  - `message` string, required
  - `rentalId` number, required

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `500` — Internal server error

## Changes

- **2026-09-16** `1875a16896e1` — 1 info
  - api tag `bare-metal-rentals` added
- **2026-09-03** `c5ba6c2504bb` — 2 info
  - api operation id `ondemand-terminateBareMetalRental` removed and replaced with `ondemand-terminateBareMetalRental-legacy`
  - endpoint deprecated

[Change history](https://skmtc.dev/hyperbolic/apis/castle-api/changes/v2/alpha/on-demand/bare-metal-rentals/terminate/post.md)

---

[API](https://skmtc.dev/hyperbolic/apis/castle-api.md) · [All operations](https://skmtc.dev/hyperbolic/apis/castle-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hyperbolic/apis/castle-api/revisions/6b22302ea98a?raw)
