Skip to main content
PUT
/
api
/
v0
/
machines
/
{machine_id}
/
cancel_maint
/
cancel maint
curl --request PUT \
  --url https://console.vast.ai/api/v0/machines/{machine_id}/cancel_maint/ \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "ctime": 123,
  "machine_id": 123,
  "msg": "deleted 1 scheduled maintenance window(s) on machine 1234"
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Path Parameters

machine_id
integer
required

ID of the machine to cancel maintenance for.

Response

Maintenance window successfully canceled.

success
boolean
Example:

true

ctime
number

Current time in seconds since the epoch.

machine_id
integer

ID of the machine.

msg
string
Example:

"deleted 1 scheduled maintenance window(s) on machine 1234"

I