Skip to main content
PUT
/
api
/
v0
/
template
edit template
curl --request PUT \
  --url https://console.vast.ai/api/v0/template/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "hash_id": "5915f1dc1ce881defb572015eb9d8178",
  "desc": "Updated description",
  "recommended_disk_space": 16
}
'
{
  "success": true,
  "template": {
    "id": 123,
    "hash_id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json
hash_id
string
required

Hash ID of the template to edit. Required for identifying which template to update.

name
string

Name of the template

image
string

Docker image path

desc
string

Short description of the template

Recommended disk space in GB

Response

Template updated successfully

success
boolean
template
object