Skip to main content
PUT
Update Template

En-têtes

Content-Type
string
requis

Allowed value: application/json.

Authorization
string
requis

Bearer authentication format, e.g.: Bearer {{API_KEY}}.

Paramètres de chemin

template_id
string
requis

Template ID. String, length: 1-255 characters.

Corps

application/json
name
string

Template name.

Exemple:

"pytorch-2.3-cuda12"

type
string

Template type.

Exemple:

"instance"

image
string

Image address.

Exemple:

"registry.example.com/ml/pytorch:2.3-cuda12"

registry_auth_id
string

Registry authentication ID.

Exemple:

"auth-001"

command
string

Startup command.

Exemple:

"jupyter lab --ip=0.0.0.0"

entrypoint
string

Image entrypoint.

Exemple:

"/bin/bash"

rootfs_size_gb
integer

Root disk size. Unit: GB.

Exemple:

50

ports
object[]

Exposed port configuration.

envs
object[]

Environment variables.

metadata
object

Template metadata.

min_cuda_version
string

Minimum CUDA version.

Exemple:

"12.2"

Réponse

200 - application/json

OK

template_id
string

Template ID

Exemple:

"tpl-001"

Dernière modification le 10 août 2026