curl --request PATCH \
--url https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"spec": {
"releaseUnitIds": [
"3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef"
],
"addUnitIds": [
"7d1e4c9a2b6f8012345678901234567890abcdef1234567890abcdef12345678"
]
}
}
'import requests
url = "https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units"
payload = { "spec": {
"releaseUnitIds": ["3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef"],
"addUnitIds": ["7d1e4c9a2b6f8012345678901234567890abcdef1234567890abcdef12345678"]
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
spec: {
releaseUnitIds: ['3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef'],
addUnitIds: ['7d1e4c9a2b6f8012345678901234567890abcdef1234567890abcdef12345678']
}
})
};
fetch('https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'spec' => [
'releaseUnitIds' => [
'3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef'
],
'addUnitIds' => [
'7d1e4c9a2b6f8012345678901234567890abcdef1234567890abcdef12345678'
]
]
]),
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"
payload := strings.NewReader("{\n \"spec\": {\n \"releaseUnitIds\": [\n \"3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef\"\n ],\n \"addUnitIds\": [\n \"7d1e4c9a2b6f8012345678901234567890abcdef1234567890abcdef12345678\"\n ]\n }\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"spec\": {\n \"releaseUnitIds\": [\n \"3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef\"\n ],\n \"addUnitIds\": [\n \"7d1e4c9a2b6f8012345678901234567890abcdef1234567890abcdef12345678\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"spec\": {\n \"releaseUnitIds\": [\n \"3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef\"\n ],\n \"addUnitIds\": [\n \"7d1e4c9a2b6f8012345678901234567890abcdef1234567890abcdef12345678\"\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": 2,
"topologyHash": "sha256:9a1f9b6b4b9b0b4e7d9c6a5f3e2d1c0b8a7f6e5d4c3b2a1908f7e6d5c4b3a291",
"topologyObservedAt": "2026-05-14T10:05:00.000Z"
}
},
"releasedUnits": [
{
"id": "3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef",
"infrastructureRefs": [
"00000000-0000-0000-0000-000000000003"
]
}
],
"addedUnits": [
{
"id": "7d1e4c9a2b6f8012345678901234567890abcdef1234567890abcdef12345678",
"infrastructureRefs": [
"00000000-0000-0000-0000-000000000005"
]
}
]
}Patch reservation units
Release and add reservation units.
curl --request PATCH \
--url https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"spec": {
"releaseUnitIds": [
"3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef"
],
"addUnitIds": [
"7d1e4c9a2b6f8012345678901234567890abcdef1234567890abcdef12345678"
]
}
}
'import requests
url = "https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units"
payload = { "spec": {
"releaseUnitIds": ["3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef"],
"addUnitIds": ["7d1e4c9a2b6f8012345678901234567890abcdef1234567890abcdef12345678"]
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
spec: {
releaseUnitIds: ['3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef'],
addUnitIds: ['7d1e4c9a2b6f8012345678901234567890abcdef1234567890abcdef12345678']
}
})
};
fetch('https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'spec' => [
'releaseUnitIds' => [
'3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef'
],
'addUnitIds' => [
'7d1e4c9a2b6f8012345678901234567890abcdef1234567890abcdef12345678'
]
]
]),
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"
payload := strings.NewReader("{\n \"spec\": {\n \"releaseUnitIds\": [\n \"3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef\"\n ],\n \"addUnitIds\": [\n \"7d1e4c9a2b6f8012345678901234567890abcdef1234567890abcdef12345678\"\n ]\n }\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"spec\": {\n \"releaseUnitIds\": [\n \"3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef\"\n ],\n \"addUnitIds\": [\n \"7d1e4c9a2b6f8012345678901234567890abcdef1234567890abcdef12345678\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://reservation.nks.europe-west4.nscale.com/api/v2/reservations/{reservationID}/units")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"spec\": {\n \"releaseUnitIds\": [\n \"3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef\"\n ],\n \"addUnitIds\": [\n \"7d1e4c9a2b6f8012345678901234567890abcdef1234567890abcdef12345678\"\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": 2,
"topologyHash": "sha256:9a1f9b6b4b9b0b4e7d9c6a5f3e2d1c0b8a7f6e5d4c3b2a1908f7e6d5c4b3a291",
"topologyObservedAt": "2026-05-14T10:05:00.000Z"
}
},
"releasedUnits": [
{
"id": "3f9c2b1a7e4d5f60918273645afbecd0192837465fabcde0123456789abcdef",
"infrastructureRefs": [
"00000000-0000-0000-0000-000000000003"
]
}
],
"addedUnits": [
{
"id": "7d1e4c9a2b6f8012345678901234567890abcdef1234567890abcdef12345678",
"infrastructureRefs": [
"00000000-0000-0000-0000-000000000005"
]
}
]
}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
A request to release and add reservation units.
Response
A reservation unit patch result.
The result of a reservation unit patch request.
Was this page helpful?