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

# schedule maint

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

Schedules a maintenance window for a specified machine and notifies clients.

CLI Usage: `vastai schedule maint <machine_id> --sdate <sdate> --duration <duration>`

## Path parameters

- `machine_id` integer, required

## Request body

- object
  - `sdate` string, date-time, required — Start date and time of the maintenance window.
  - `duration` integer, required — Duration of the maintenance window in hours.
  - `maintenance_reason` string — Reason for the maintenance.
  - `maintenance_category` 'power' | 'internet' | 'disk' | 'gpu' | 'software' | 'other' — Category of the maintenance.

## Response `200`

Success response

- object
  - `success` boolean
  - `you_sent` string

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `422` — Unprocessable Entity
- `429` — Too Many Requests

---

[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)
