---
title: "cancel maint"
method: PUT
path: "/api/v0/machines/{machine_id}/cancel_maint/"
tags: ["Machines"]
---

# cancel maint

`PUT /api/v0/machines/{machine_id}/cancel_maint/`

Cancel a scheduled maintenance window for a specified machine.

CLI Usage: `vastai cancel maint <machine_id>`

## Path parameters

- `machine_id` integer, required

## Response `200`

Maintenance window successfully canceled.

- object
  - `success` boolean
  - `ctime` number, float — Current time in seconds since the epoch.
  - `machine_id` integer — ID of the machine.
  - `msg` string

## Other responses

- `404` — Machine not found or does not belong to the user.

---

[API](https://skmtc.net/vast/apis/vast-ai-api.md) · [All operations](https://skmtc.net/vast/apis/vast-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vast/vast-ai-api/revisions/4ed14f79f796/schema)
