Update Inventory Cluster
curl --request PATCH \
--url https://api.primeintellect.ai/api/admin/inventory/clusters/{cluster_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"slug": "<string>",
"displayName": "<string>",
"vaultSshCaEnabled": true,
"liquidCompute": true,
"listedPrimeResell": true,
"description": "<string>",
"comments": "<string>",
"tags": [
"<string>"
],
"siteId": "<string>",
"tenantId": "<string>",
"clusterId": "<string>",
"identity": {},
"commercial": {},
"network": {},
"storage": {},
"operations": {},
"access": {},
"additional": {}
}
'import requests
url = "https://api.primeintellect.ai/api/admin/inventory/clusters/{cluster_id}"
payload = {
"name": "<string>",
"slug": "<string>",
"displayName": "<string>",
"vaultSshCaEnabled": True,
"liquidCompute": True,
"listedPrimeResell": True,
"description": "<string>",
"comments": "<string>",
"tags": ["<string>"],
"siteId": "<string>",
"tenantId": "<string>",
"clusterId": "<string>",
"identity": {},
"commercial": {},
"network": {},
"storage": {},
"operations": {},
"access": {},
"additional": {}
}
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({
name: '<string>',
slug: '<string>',
displayName: '<string>',
vaultSshCaEnabled: true,
liquidCompute: true,
listedPrimeResell: true,
description: '<string>',
comments: '<string>',
tags: ['<string>'],
siteId: '<string>',
tenantId: '<string>',
clusterId: '<string>',
identity: {},
commercial: {},
network: {},
storage: {},
operations: {},
access: {},
additional: {}
})
};
fetch('https://api.primeintellect.ai/api/admin/inventory/clusters/{cluster_id}', 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/admin/inventory/clusters/{cluster_id}",
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([
'name' => '<string>',
'slug' => '<string>',
'displayName' => '<string>',
'vaultSshCaEnabled' => true,
'liquidCompute' => true,
'listedPrimeResell' => true,
'description' => '<string>',
'comments' => '<string>',
'tags' => [
'<string>'
],
'siteId' => '<string>',
'tenantId' => '<string>',
'clusterId' => '<string>',
'identity' => [
],
'commercial' => [
],
'network' => [
],
'storage' => [
],
'operations' => [
],
'access' => [
],
'additional' => [
]
]),
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/admin/inventory/clusters/{cluster_id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"displayName\": \"<string>\",\n \"vaultSshCaEnabled\": true,\n \"liquidCompute\": true,\n \"listedPrimeResell\": true,\n \"description\": \"<string>\",\n \"comments\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"siteId\": \"<string>\",\n \"tenantId\": \"<string>\",\n \"clusterId\": \"<string>\",\n \"identity\": {},\n \"commercial\": {},\n \"network\": {},\n \"storage\": {},\n \"operations\": {},\n \"access\": {},\n \"additional\": {}\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://api.primeintellect.ai/api/admin/inventory/clusters/{cluster_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"displayName\": \"<string>\",\n \"vaultSshCaEnabled\": true,\n \"liquidCompute\": true,\n \"listedPrimeResell\": true,\n \"description\": \"<string>\",\n \"comments\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"siteId\": \"<string>\",\n \"tenantId\": \"<string>\",\n \"clusterId\": \"<string>\",\n \"identity\": {},\n \"commercial\": {},\n \"network\": {},\n \"storage\": {},\n \"operations\": {},\n \"access\": {},\n \"additional\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.primeintellect.ai/api/admin/inventory/clusters/{cluster_id}")
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 \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"displayName\": \"<string>\",\n \"vaultSshCaEnabled\": true,\n \"liquidCompute\": true,\n \"listedPrimeResell\": true,\n \"description\": \"<string>\",\n \"comments\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"siteId\": \"<string>\",\n \"tenantId\": \"<string>\",\n \"clusterId\": \"<string>\",\n \"identity\": {},\n \"commercial\": {},\n \"network\": {},\n \"storage\": {},\n \"operations\": {},\n \"access\": {},\n \"additional\": {}\n}"
response = http.request(request)
puts response.read_body{
"data": {
"operationId": "<string>",
"message": "<string>",
"targetId": "<string>",
"targetName": "<string>",
"created": 123,
"updated": 123,
"assigned": 123
},
"status": "<string>"
}{
"errors": [
{
"param": "<string>",
"details": "<string>"
}
]
}admin-inventory
Update Inventory Cluster
Apply one general partial cluster update through the audited service.
PATCH
/
api
/
admin
/
inventory
/
clusters
/
{cluster_id}
Update Inventory Cluster
curl --request PATCH \
--url https://api.primeintellect.ai/api/admin/inventory/clusters/{cluster_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"slug": "<string>",
"displayName": "<string>",
"vaultSshCaEnabled": true,
"liquidCompute": true,
"listedPrimeResell": true,
"description": "<string>",
"comments": "<string>",
"tags": [
"<string>"
],
"siteId": "<string>",
"tenantId": "<string>",
"clusterId": "<string>",
"identity": {},
"commercial": {},
"network": {},
"storage": {},
"operations": {},
"access": {},
"additional": {}
}
'import requests
url = "https://api.primeintellect.ai/api/admin/inventory/clusters/{cluster_id}"
payload = {
"name": "<string>",
"slug": "<string>",
"displayName": "<string>",
"vaultSshCaEnabled": True,
"liquidCompute": True,
"listedPrimeResell": True,
"description": "<string>",
"comments": "<string>",
"tags": ["<string>"],
"siteId": "<string>",
"tenantId": "<string>",
"clusterId": "<string>",
"identity": {},
"commercial": {},
"network": {},
"storage": {},
"operations": {},
"access": {},
"additional": {}
}
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({
name: '<string>',
slug: '<string>',
displayName: '<string>',
vaultSshCaEnabled: true,
liquidCompute: true,
listedPrimeResell: true,
description: '<string>',
comments: '<string>',
tags: ['<string>'],
siteId: '<string>',
tenantId: '<string>',
clusterId: '<string>',
identity: {},
commercial: {},
network: {},
storage: {},
operations: {},
access: {},
additional: {}
})
};
fetch('https://api.primeintellect.ai/api/admin/inventory/clusters/{cluster_id}', 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/admin/inventory/clusters/{cluster_id}",
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([
'name' => '<string>',
'slug' => '<string>',
'displayName' => '<string>',
'vaultSshCaEnabled' => true,
'liquidCompute' => true,
'listedPrimeResell' => true,
'description' => '<string>',
'comments' => '<string>',
'tags' => [
'<string>'
],
'siteId' => '<string>',
'tenantId' => '<string>',
'clusterId' => '<string>',
'identity' => [
],
'commercial' => [
],
'network' => [
],
'storage' => [
],
'operations' => [
],
'access' => [
],
'additional' => [
]
]),
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/admin/inventory/clusters/{cluster_id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"displayName\": \"<string>\",\n \"vaultSshCaEnabled\": true,\n \"liquidCompute\": true,\n \"listedPrimeResell\": true,\n \"description\": \"<string>\",\n \"comments\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"siteId\": \"<string>\",\n \"tenantId\": \"<string>\",\n \"clusterId\": \"<string>\",\n \"identity\": {},\n \"commercial\": {},\n \"network\": {},\n \"storage\": {},\n \"operations\": {},\n \"access\": {},\n \"additional\": {}\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://api.primeintellect.ai/api/admin/inventory/clusters/{cluster_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"displayName\": \"<string>\",\n \"vaultSshCaEnabled\": true,\n \"liquidCompute\": true,\n \"listedPrimeResell\": true,\n \"description\": \"<string>\",\n \"comments\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"siteId\": \"<string>\",\n \"tenantId\": \"<string>\",\n \"clusterId\": \"<string>\",\n \"identity\": {},\n \"commercial\": {},\n \"network\": {},\n \"storage\": {},\n \"operations\": {},\n \"access\": {},\n \"additional\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.primeintellect.ai/api/admin/inventory/clusters/{cluster_id}")
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 \"name\": \"<string>\",\n \"slug\": \"<string>\",\n \"displayName\": \"<string>\",\n \"vaultSshCaEnabled\": true,\n \"liquidCompute\": true,\n \"listedPrimeResell\": true,\n \"description\": \"<string>\",\n \"comments\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"siteId\": \"<string>\",\n \"tenantId\": \"<string>\",\n \"clusterId\": \"<string>\",\n \"identity\": {},\n \"commercial\": {},\n \"network\": {},\n \"storage\": {},\n \"operations\": {},\n \"access\": {},\n \"additional\": {}\n}"
response = http.request(request)
puts response.read_body{
"data": {
"operationId": "<string>",
"message": "<string>",
"targetId": "<string>",
"targetName": "<string>",
"created": 123,
"updated": 123,
"assigned": 123
},
"status": "<string>"
}{
"errors": [
{
"param": "<string>",
"details": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Body
application/json
Cluster create/update. All fields optional (partial update); create validates
name in the service. JSON buckets are persisted as-is (trusted from the form).
Available options:
PLANNED, ACTIVE, DECOMMISSIONING, DECOMMISSIONED, OFFLINE Was this page helpful?
⌘I