Update a template
Partially updates a template. This is a PATCH: only the fields
present in the body are changed; omitted fields are left untouched.
See UpdateTemplateRequest for the full body.
Mutable fields: name, image, args, disk, ports, env,
registry, mounts, serverless, public, and category.
Only the template’s owner can update it (authenticated via the
request’s API key); other users’ templates are neither visible nor
mutable. Returns 200 with the full updated template. Pods and
endpoints already created from this template are not changed
retroactively — the template is a snapshot applied at creation time.
Authorizations
Runpod API key authentication. Generate an API key in the Runpod console and send it in the Authorization header as Bearer <api_key>. Keys are scoped to the permissions granted when created; requests may return 403 when a valid key lacks access to the requested resource or action.
Path Parameters
Body
Reusable container configuration shared across templates, pods, and serverless endpoints. Adding a field here automatically propagates to all three resources.
Docker image reference
"runpod/pytorch:2.8.0-py3.11-cuda12.8.1"
Arguments passed to the container entrypoint
""
Container disk in GB (ephemeral, wiped on restart)
x >= 150
Exposed ports, formatted as port/protocol
Environment variables as key-value pairs
Container registry credential ID (for private images)
null
1Storage mounts attached to a template. Templates support only a
single persistent mount today; any network property is rejected
with 422 by the schema validator.
PATCH semantics: omitting mounts or sending {} leaves the
existing mount unchanged.
Controls how the template is grouped and filtered in the Runpod console. It does not affect hardware selection, scheduling, or billing.
CPU— CPU-only workloadsNVIDIA— NVIDIA GPU workloadsAMD— AMD GPU workloads
CPU, NVIDIA, AMD Response
OK
Reusable container configuration shared across templates, pods, and serverless endpoints. Adding a field here automatically propagates to all three resources.
Docker image reference
"runpod/pytorch:2.8.0-py3.11-cuda12.8.1"
Arguments passed to the container entrypoint
""
Container disk in GB (ephemeral, wiped on restart)
x >= 150
Exposed ports, formatted as port/protocol
Environment variables as key-value pairs
Container registry credential ID (for private images)
null
"tpl_abc"
"My PyTorch Template"
Storage mounts attached to a template. Templates support only a
single persistent mount today; any network property is rejected
with 422 by the schema validator.
PATCH semantics: omitting mounts or sending {} leaves the
existing mount unchanged.
Whether this template is for serverless workers (true) or pods (false)
false
Whether this template is visible to other Runpod users
false
Controls how the template is grouped and filtered in the Runpod console. It does not affect hardware selection, scheduling, or billing.
CPU— CPU-only workloadsNVIDIA— NVIDIA GPU workloadsAMD— AMD GPU workloads
CPU, NVIDIA, AMD