Skip to main content
PUT
/
api
/
v0
/
deployments
Update deployments
curl --request PUT \
  --url https://console.vast.ai/api/v0/deployments/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "tag": "<string>",
  "image": "<string>",
  "search_params": "<string>",
  "file_hash": "<string>",
  "file_size": "<string>",
  "env": "<string>",
  "storage": "<string>",
  "ttl": "<string>",
  "version_label": "<string>",
  "docker_login_user": "<string>",
  "docker_login_pass": "<string>",
  "docker_login_repo": "<string>",
  "cold_workers": "<string>",
  "max_workers": "<string>",
  "min_load": "<string>",
  "min_cold_load": "<string>",
  "target_util": "<string>",
  "cold_mult": "<string>",
  "max_queue_time": "<string>",
  "target_queue_time": "<string>",
  "inactivity_timeout": "<string>",
  "overrecruit_ratio": "<string>",
  "autoscaler_instance": "<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

Body

application/json
name
string

The name

tag
string

The tag

image
string

The image

search_params
string

The search params

file_hash
string

The file hash

file_size
string

The file size

env
string

The env

storage
string

The storage

ttl
string

The ttl

version_label
string

The version label

docker_login_user
string

The docker login user

docker_login_pass
string

The docker login pass

docker_login_repo
string

The docker login repo

cold_workers
string

The cold workers

max_workers
string

The max workers

min_load
string

The min load

min_cold_load
string

The min cold load

target_util
string

The target util

cold_mult
string

The cold mult

max_queue_time
string

The max queue time

target_queue_time
string

The target queue time

inactivity_timeout
string

The inactivity timeout

overrecruit_ratio
string

The overrecruit ratio

autoscaler_instance
string

The autoscaler instance

apikey_id
string

The apikey id

Response

Successful response

success
boolean
Example:

true

msg
string
Example:

"Operation completed successfully"