Update template
curl --request PATCH \
--url https://api.aireserve.com/v1/gpu/templates/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"imageName": "<string>",
"containerDiskGb": 512,
"env": {},
"ports": [
{
"port": 123
}
],
"dockerStartCmd": [
"<string>"
]
}
'import requests
url = "https://api.aireserve.com/v1/gpu/templates/{id}"
payload = {
"name": "<string>",
"imageName": "<string>",
"containerDiskGb": 512,
"env": {},
"ports": [{ "port": 123 }],
"dockerStartCmd": ["<string>"]
}
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>',
imageName: '<string>',
containerDiskGb: 512,
env: {},
ports: [{port: 123}],
dockerStartCmd: ['<string>']
})
};
fetch('https://api.aireserve.com/v1/gpu/templates/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"accepted": true,
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"operationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "accepted",
"resourceType": "pod"
}GPU Compute
Update template
Update a private organization template. Curated templates cannot be modified. Template changes never affect running pods — each pod snapshotted its launch config at creation time. Returns 202 Accepted. Requires compute manage access.
PATCH
/
v1
/
gpu
/
templates
/
{id}
Update template
curl --request PATCH \
--url https://api.aireserve.com/v1/gpu/templates/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"imageName": "<string>",
"containerDiskGb": 512,
"env": {},
"ports": [
{
"port": 123
}
],
"dockerStartCmd": [
"<string>"
]
}
'import requests
url = "https://api.aireserve.com/v1/gpu/templates/{id}"
payload = {
"name": "<string>",
"imageName": "<string>",
"containerDiskGb": 512,
"env": {},
"ports": [{ "port": 123 }],
"dockerStartCmd": ["<string>"]
}
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>',
imageName: '<string>',
containerDiskGb: 512,
env: {},
ports: [{port: 123}],
dockerStartCmd: ['<string>']
})
};
fetch('https://api.aireserve.com/v1/gpu/templates/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"accepted": true,
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"operationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "accepted",
"resourceType": "pod"
}Authorizations
Your AI Reserve API key (aireserve_api_…) from the API Keys page in the portal (https://portal.aireserve.com/keys).
Path Parameters
Body
application/json
Maximum string length:
120Docker image reference.
Required range:
1 <= x <= 1024Show child attributes
Show child attributes
Maximum array length:
20Show child attributes
Show child attributes
Optional Docker entrypoint override.
Maximum array length:
32Response
Template updated.
Response to a 202 Accepted Compute mutation. All fields are camelCase. Use operationId to poll GET /v1/gpu/operations/{id} for terminal status.
Available options:
true ID of the resource created or mutated.
ID for the durable operation record. Poll GET /v1/gpu/operations/{id} for terminal status.
Available options:
accepted, pending Available options:
pod, volume, template, registry, ssh_key