Vast.ai API
Accounts

update env var

1min
PUT
https://console.vast.ai/api/v0/secrets/
Production server

Updates the value of an existing environment variable for the authenticated user.

CLI Usage: vast-ai set env-var KEY VALUE

Authentication
BearerAuth
Body Parameters
body
*
key
*
value
*
Responses
200
Environment variable updated successfully
success
msg
400
Bad Request
All Of
Error +
success
error
msg
401
Unauthorized
success
error
msg
429
Too Many Requests
detail




Updated 14 Feb 2025
Did this page help you?