v1
latestOpenAPI 3.1.02026-07-13897404.3 KBMachines
schedule maint
Schedules a maintenance window for a specified machine and notifies clients.
CLI Usage: vastai schedule maint <machine_id> --sdate <sdate> --duration <duration>
put/api/v0/machines/{machine_id}/dnotify
Path parameters
machine_idinteger required
Example:12345
ID of the machine to schedule maintenance for.
Request body
Example request
{
"sdate": "2023-10-30T14:00:00Z",
"duration": 2,
"maintenance_reason": "Routine hardware check",
"maintenance_category": "software"
}Response
Success response
Example response
{
"success": true,
"you_sent": "2 notifications sent"
}