Skip to main content
PUT
/
api
/
v0
/
instances
/
update_template
/
{id}
Update instance update template
curl --request PUT \
  --url https://console.vast.ai/api/v0/instances/update_template/{id}/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "template_id": "<string>",
  "template_hash_id": "<string>",
  "price": "<string>",
  "image": "<string>",
  "runtype": "<string>",
  "onstart": "<string>",
  "use_ssh": "<string>",
  "image_login": "<string>",
  "disk": "<string>",
  "recycle": "<string>",
  "apikey_id": "<string>"
}
'
{
  "success": true,
  "msg": "Operation completed successfully"
}

Documentation Index

Fetch the complete documentation index at: https://vastai-80aa3a82-auto-openapi-preview-pr-4175.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Path Parameters

id
integer
required

The id

Body

application/json
id
string

The id

template_id
string

The template id

template_hash_id
string

The template hash id

price
string

The price

image
string

The image

runtype
string

The runtype

onstart
string

The onstart

use_ssh
string

The use ssh

image_login
string

The image login

disk
string

The disk

recycle
string

The recycle

apikey_id
string

The apikey id

Response

Successful response

success
boolean
Example:

true

msg
string
Example:

"Operation completed successfully"