curl --request POST \
--url https://api.primeintellect.ai/api/v1/model-factory/clusters/{cluster_id}/nodes/{node_name}/reboot \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"confirm_node_name": "gpu-01"
}
'import requests
url = "https://api.primeintellect.ai/api/v1/model-factory/clusters/{cluster_id}/nodes/{node_name}/reboot"
payload = { "confirm_node_name": "gpu-01" }
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({confirm_node_name: 'gpu-01'})
};
fetch('https://api.primeintellect.ai/api/v1/model-factory/clusters/{cluster_id}/nodes/{node_name}/reboot', 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://api.primeintellect.ai/api/v1/model-factory/clusters/{cluster_id}/nodes/{node_name}/reboot",
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([
'confirm_node_name' => 'gpu-01'
]),
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://api.primeintellect.ai/api/v1/model-factory/clusters/{cluster_id}/nodes/{node_name}/reboot"
payload := strings.NewReader("{\n \"confirm_node_name\": \"gpu-01\"\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://api.primeintellect.ai/api/v1/model-factory/clusters/{cluster_id}/nodes/{node_name}/reboot")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"confirm_node_name\": \"gpu-01\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.primeintellect.ai/api/v1/model-factory/clusters/{cluster_id}/nodes/{node_name}/reboot")
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 \"confirm_node_name\": \"gpu-01\"\n}"
response = http.request(request)
puts response.read_body{
"nodeName": "<string>",
"requestedAt": "<string>"
}Request Cluster Node Reboot
Ask for a graceful reboot of one GPU node of a dedicated cluster.
The platform only marks the node; the cluster drains Slurm and its workloads, reboots the node and re-validates it, honoring pod protection and maintenance windows. Pickup takes up to about 15 minutes, and the pending mark clears once the node is back.
The caller must be an ADMIN of the team the cluster is dedicated to
(other members get 403, anyone else 404). A cluster that does not
support node reboot (reboot_supported false on its status and nodes
entries) answers 422. confirmNodeName must
equal node_name exactly. Control-plane nodes and nodes outside the
cluster’s GPU node list are refused, and a node with a reboot
already pending is a 409, so retries are safe. Every request that
reaches this handler is audited, refused ones included.
curl --request POST \
--url https://api.primeintellect.ai/api/v1/model-factory/clusters/{cluster_id}/nodes/{node_name}/reboot \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"confirm_node_name": "gpu-01"
}
'import requests
url = "https://api.primeintellect.ai/api/v1/model-factory/clusters/{cluster_id}/nodes/{node_name}/reboot"
payload = { "confirm_node_name": "gpu-01" }
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({confirm_node_name: 'gpu-01'})
};
fetch('https://api.primeintellect.ai/api/v1/model-factory/clusters/{cluster_id}/nodes/{node_name}/reboot', 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://api.primeintellect.ai/api/v1/model-factory/clusters/{cluster_id}/nodes/{node_name}/reboot",
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([
'confirm_node_name' => 'gpu-01'
]),
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://api.primeintellect.ai/api/v1/model-factory/clusters/{cluster_id}/nodes/{node_name}/reboot"
payload := strings.NewReader("{\n \"confirm_node_name\": \"gpu-01\"\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://api.primeintellect.ai/api/v1/model-factory/clusters/{cluster_id}/nodes/{node_name}/reboot")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"confirm_node_name\": \"gpu-01\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.primeintellect.ai/api/v1/model-factory/clusters/{cluster_id}/nodes/{node_name}/reboot")
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 \"confirm_node_name\": \"gpu-01\"\n}"
response = http.request(request)
puts response.read_body{
"nodeName": "<string>",
"requestedAt": "<string>"
}Authorizations
Was this page helpful?