Skip to main content
PATCH
Update template

Authorizations

Authorization
string
header
required

Your AI Reserve API key (aireserve_api_…) from the API Keys page in the portal (https://portal.aireserve.com/keys).

Path Parameters

id
string<uuid>
required

Body

application/json
name
string
required
Maximum string length: 120
imageName
string
required

Docker image reference.

containerDiskGb
integer
required
Required range: 1 <= x <= 1024
env
object
ports
object[]
Maximum array length: 20
dockerStartCmd
string[]

Optional Docker entrypoint override.

Maximum array length: 32

Response

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.

accepted
enum<boolean>
required
Available options:
true
resourceId
string<uuid>
required

ID of the resource created or mutated.

operationId
string<uuid>
required

ID for the durable operation record. Poll GET /v1/gpu/operations/{id} for terminal status.

status
enum<string>
required
Available options:
accepted,
pending
resourceType
enum<string>
Available options:
pod,
volume,
template,
registry,
ssh_key