Release reservation units
curl --request POST \
--url https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units/release \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"spec": {
"unitIds": [
"3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef"
]
}
}
'import requests
url = "https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units/release"
payload = { "spec": { "unitIds": ["3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef"] } }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
spec: {unitIds: ['3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef']}
})
};
fetch('https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units/release', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units/release",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'spec' => [
'unitIds' => [
'3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units/release"
payload := strings.NewReader("{\n \"spec\": {\n \"unitIds\": [\n \"3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef\"\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units/release")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"spec\": {\n \"unitIds\": [\n \"3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units/release")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"spec\": {\n \"unitIds\": [\n \"3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"reservation": {
"metadata": {
"id": "a64f9269-36e0-4312-b8d1-52d93d569b7b",
"name": "gb300-nvl72",
"organizationId": "9a8c6370-4065-4d4a-9da0-7678df40cd9d",
"projectId": "e36c058a-8eba-4f5b-91f4-f6ffb983795c",
"creationTime": "2026-04-28T10:45:45.000Z",
"createdBy": "john.doe@example.com",
"provisioningStatus": "provisioned",
"healthStatus": "healthy"
},
"spec": {
"regionId": "c7568e2d-f9ab-453d-9a3a-51375f78426b",
"accelerator": "GB300",
"unit": "NVL72",
"count": 2
},
"status": {
"machineFlavorId": "g.72.gb300.pinned",
"claimedUnitCount": 1,
"topologyHash": "sha256:9a1f9b6b4b9b0b4e7d9c6a5f3e2d1c0b8a7f6e5d4c3b2a1908f7e6d5c4b3a291",
"topologyObservedAt": "2026-05-14T10:05:00.000Z"
}
},
"releasedUnits": [
{
"id": "3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef",
"infrastructureRefs": [
"00000000-0000-0000-0000-000000000003"
]
}
]
}{
"error": "invalid_request",
"error_description": "request body invalid",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "access_denied",
"error_description": "authentication failed",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "forbidden",
"error_description": "user credentials do not have the required privileges",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "not_found",
"error_description": "the requested resource does not exist",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "conflict",
"error_description": "a resource with the same name already exists",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "invalid_request",
"error_description": "<string>",
"trace_id": "<string>"
}{
"blockers": [
{
"unitId": "3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef",
"consumers": [
{
"type": "placement",
"placementId": "b8ce034e-fccb-4d6c-a0e0-af3e3f346715",
"serverIds": [
"psrv-950ab3259a1443da"
]
}
]
}
]
}{
"error": "invalid_request",
"error_description": "<string>",
"trace_id": "<string>"
}{
"error": "server_error",
"error_description": "failed to token claim",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}Reservations
Release reservation units
Release reservation units.
POST
/
api
/
v2
/
reservations
/
{reservationID}
/
units
/
release
Release reservation units
curl --request POST \
--url https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units/release \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"spec": {
"unitIds": [
"3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef"
]
}
}
'import requests
url = "https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units/release"
payload = { "spec": { "unitIds": ["3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef"] } }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
spec: {unitIds: ['3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef']}
})
};
fetch('https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units/release', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units/release",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'spec' => [
'unitIds' => [
'3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units/release"
payload := strings.NewReader("{\n \"spec\": {\n \"unitIds\": [\n \"3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef\"\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units/release")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"spec\": {\n \"unitIds\": [\n \"3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units/release")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"spec\": {\n \"unitIds\": [\n \"3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"reservation": {
"metadata": {
"id": "a64f9269-36e0-4312-b8d1-52d93d569b7b",
"name": "gb300-nvl72",
"organizationId": "9a8c6370-4065-4d4a-9da0-7678df40cd9d",
"projectId": "e36c058a-8eba-4f5b-91f4-f6ffb983795c",
"creationTime": "2026-04-28T10:45:45.000Z",
"createdBy": "john.doe@example.com",
"provisioningStatus": "provisioned",
"healthStatus": "healthy"
},
"spec": {
"regionId": "c7568e2d-f9ab-453d-9a3a-51375f78426b",
"accelerator": "GB300",
"unit": "NVL72",
"count": 2
},
"status": {
"machineFlavorId": "g.72.gb300.pinned",
"claimedUnitCount": 1,
"topologyHash": "sha256:9a1f9b6b4b9b0b4e7d9c6a5f3e2d1c0b8a7f6e5d4c3b2a1908f7e6d5c4b3a291",
"topologyObservedAt": "2026-05-14T10:05:00.000Z"
}
},
"releasedUnits": [
{
"id": "3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef",
"infrastructureRefs": [
"00000000-0000-0000-0000-000000000003"
]
}
]
}{
"error": "invalid_request",
"error_description": "request body invalid",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "access_denied",
"error_description": "authentication failed",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "forbidden",
"error_description": "user credentials do not have the required privileges",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "not_found",
"error_description": "the requested resource does not exist",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "conflict",
"error_description": "a resource with the same name already exists",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}{
"error": "invalid_request",
"error_description": "<string>",
"trace_id": "<string>"
}{
"blockers": [
{
"unitId": "3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef",
"consumers": [
{
"type": "placement",
"placementId": "b8ce034e-fccb-4d6c-a0e0-af3e3f346715",
"serverIds": [
"psrv-950ab3259a1443da"
]
}
]
}
]
}{
"error": "invalid_request",
"error_description": "<string>",
"trace_id": "<string>"
}{
"error": "server_error",
"error_description": "failed to token claim",
"trace_id": "57bc14d9bd461f0b5a72db830149b67a"
}Authorizations
Headers
The entity tag of the current state the caller expects to mutate, quoted as a strong entity tag (for example the value of a prior response's ETag header). The endpoint requires it and rejects a request that omits it with 428, and one whose tag no longer matches the resource's current entity tag with 412. It is declared optional at the schema level deliberately: request validation runs before the handler, and a schema-level requirement would reject an absent header with a generic 400 before the endpoint could return the precise 428. The endpoint owns the precondition instead.
Body
application/json
A request to release reservation units.
Was this page helpful?