curl --request PATCH \
--url https://compute.x402layer.cc/pods/{id}/settings \
--header 'Content-Type: application/json' \
--data '
{
"auto_renew_enabled": true,
"model": "<string>",
"agent_identity": "<string>",
"agent_instructions": "<string>",
"heartbeat_prompt": "<string>",
"agent_heartbeat_minutes": 720
}
'import requests
url = "https://compute.x402layer.cc/pods/{id}/settings"
payload = {
"auto_renew_enabled": True,
"model": "<string>",
"agent_identity": "<string>",
"agent_instructions": "<string>",
"heartbeat_prompt": "<string>",
"agent_heartbeat_minutes": 720
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
auto_renew_enabled: true,
model: '<string>',
agent_identity: '<string>',
agent_instructions: '<string>',
heartbeat_prompt: '<string>',
agent_heartbeat_minutes: 720
})
};
fetch('https://compute.x402layer.cc/pods/{id}/settings', 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://compute.x402layer.cc/pods/{id}/settings",
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([
'auto_renew_enabled' => true,
'model' => '<string>',
'agent_identity' => '<string>',
'agent_instructions' => '<string>',
'heartbeat_prompt' => '<string>',
'agent_heartbeat_minutes' => 720
]),
CURLOPT_HTTPHEADER => [
"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://compute.x402layer.cc/pods/{id}/settings"
payload := strings.NewReader("{\n \"auto_renew_enabled\": true,\n \"model\": \"<string>\",\n \"agent_identity\": \"<string>\",\n \"agent_instructions\": \"<string>\",\n \"heartbeat_prompt\": \"<string>\",\n \"agent_heartbeat_minutes\": 720\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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://compute.x402layer.cc/pods/{id}/settings")
.header("Content-Type", "application/json")
.body("{\n \"auto_renew_enabled\": true,\n \"model\": \"<string>\",\n \"agent_identity\": \"<string>\",\n \"agent_instructions\": \"<string>\",\n \"heartbeat_prompt\": \"<string>\",\n \"agent_heartbeat_minutes\": 720\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://compute.x402layer.cc/pods/{id}/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"auto_renew_enabled\": true,\n \"model\": \"<string>\",\n \"agent_identity\": \"<string>\",\n \"agent_instructions\": \"<string>\",\n \"heartbeat_prompt\": \"<string>\",\n \"agent_heartbeat_minutes\": 720\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"settings": {},
"note": "<string>"
}Update Agent Pod settings
Owner-tunable pod knobs. Send any subset of the fields below. agent_heartbeat_minutes, heartbeat_prompt, agent_identity, and agent_instructions change the agent self-check/customization layer and queue an update/restart; model triggers an agent restart (~40s); auto_renew_enabled controls lifecycle billing. Authenticate with the same compute auth as /compute/*. Raw AGENTS.md replacement is intentionally not exposed.
curl --request PATCH \
--url https://compute.x402layer.cc/pods/{id}/settings \
--header 'Content-Type: application/json' \
--data '
{
"auto_renew_enabled": true,
"model": "<string>",
"agent_identity": "<string>",
"agent_instructions": "<string>",
"heartbeat_prompt": "<string>",
"agent_heartbeat_minutes": 720
}
'import requests
url = "https://compute.x402layer.cc/pods/{id}/settings"
payload = {
"auto_renew_enabled": True,
"model": "<string>",
"agent_identity": "<string>",
"agent_instructions": "<string>",
"heartbeat_prompt": "<string>",
"agent_heartbeat_minutes": 720
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
auto_renew_enabled: true,
model: '<string>',
agent_identity: '<string>',
agent_instructions: '<string>',
heartbeat_prompt: '<string>',
agent_heartbeat_minutes: 720
})
};
fetch('https://compute.x402layer.cc/pods/{id}/settings', 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://compute.x402layer.cc/pods/{id}/settings",
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([
'auto_renew_enabled' => true,
'model' => '<string>',
'agent_identity' => '<string>',
'agent_instructions' => '<string>',
'heartbeat_prompt' => '<string>',
'agent_heartbeat_minutes' => 720
]),
CURLOPT_HTTPHEADER => [
"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://compute.x402layer.cc/pods/{id}/settings"
payload := strings.NewReader("{\n \"auto_renew_enabled\": true,\n \"model\": \"<string>\",\n \"agent_identity\": \"<string>\",\n \"agent_instructions\": \"<string>\",\n \"heartbeat_prompt\": \"<string>\",\n \"agent_heartbeat_minutes\": 720\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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://compute.x402layer.cc/pods/{id}/settings")
.header("Content-Type", "application/json")
.body("{\n \"auto_renew_enabled\": true,\n \"model\": \"<string>\",\n \"agent_identity\": \"<string>\",\n \"agent_instructions\": \"<string>\",\n \"heartbeat_prompt\": \"<string>\",\n \"agent_heartbeat_minutes\": 720\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://compute.x402layer.cc/pods/{id}/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"auto_renew_enabled\": true,\n \"model\": \"<string>\",\n \"agent_identity\": \"<string>\",\n \"agent_instructions\": \"<string>\",\n \"heartbeat_prompt\": \"<string>\",\n \"agent_heartbeat_minutes\": 720\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"settings": {},
"note": "<string>"
}Path Parameters
Body
Renew this pod from your credits at expiry. Rejected for free-trial pods.
Model slug like provider/model (e.g. anthropic/claude-sonnet-4.5). Applies to chat, channels, and the OpenAI adapter.
Owner/platform identity text layered into managed AGENTS.md and IDENTITY.md. Empty or null clears it on PATCH.
8000Owner/platform operating instructions layered into managed AGENTS.md. Empty or null clears it on PATCH.
8000Prompt for the agent quiet self-check heartbeat. Empty or null restores the default survival/check-work prompt on PATCH.
4000Self-check cadence in minutes. 0 disables it; otherwise use 15-1440.
0 <= x <= 1440Was this page helpful?
