Skip to main content
PUT
edit template

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json
id
integer
required

Numeric ID of the template version to edit. Must be the version identified by hash_id.

hash_id
string
required

Current hash ID of the template version to edit.

name
string

Name of the template

image
string

Docker image path

tag
string

Docker image tag. Can also be included in the image field instead.

env
string

Environment variables and port mappings in Docker flag format.

Example: "-e HF_TOKEN=hf_xxx123456789 -p 8000:8000"

onstart
string

Commands to run when the instance starts

runtype
enum<string>

Launch mode for instances created from this template

Available options:
ssh,
jupyter,
args
ssh_direct
boolean

Enable direct SSH connection

use_ssh
boolean

Enable SSH access to instances created from this template

jup_direct
boolean

Enable direct Jupyter connection

jupyter_dir
string

Directory to launch Jupyter from

use_jupyter_lab
boolean

Use JupyterLab instead of Jupyter Notebook

docker_login_repo
string

Name of the private Docker repo (i.e docker.io)

docker_login_user
string

Username for private Docker repo

docker_login_pass
string

Access token or password for private Docker repo

extra_filters
object

Additional machine search filters. Example: {"cuda_max_good": {"gte": 12.6}}

Recommended disk space in GB

desc
string

Short description of the template

readme
string

Longer documentation/readme content for the template

args_str
string

Arguments string passed to the container entrypoint when runtype is args

href
string

Link to Docker Hub or image documentation

repo
string

Repository identifier (e.g., library/ubuntu)

private
boolean

Whether the template is private (not publicly searchable)

volume_info
object | null

UI hint for volume configuration

Response

New template version created, or no edits were needed

success
boolean

Whether the operation was successful

msg
string

Status message

Example:

"Created an Edited Copy of Template 123456. New Template ID: 123457"

template
object

The new template version