> ## Documentation Index
> Fetch the complete documentation index at: https://vastai-80aa3a82-docs-disable-ssh-password-login.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# VastAI.schedule_maint

Schedule maintenance for a machine.

<Note>This is a **host** method, used for managing machines you are renting out on Vast.ai.</Note>

## Signature

```python theme={null}
VastAI.schedule_maint(id: int, sdate, duration, category: str = "not provided") -> dict
```

## Parameters

<ParamField path="id" type="int" required>
  id
</ParamField>

<ParamField path="sdate" type="Optional[float]">
  sdate
</ParamField>

<ParamField path="duration" type="Optional[float]">
  Duration of the maintenance window, in hours.
</ParamField>

<ParamField path="category" type="str" default="not provided">
  Reason for the maintenance window.
</ParamField>

## Returns

`dict`

## Example

```python theme={null}
from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.schedule_maint(id=12345)
print(result)
```
