> ## Documentation Index
> Fetch the complete documentation index at: https://vastai-80aa3a82-auto-cli-sdk-preview-pr-398.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# VastAI.schedule_maint

Schedule maintenance for a machine.

## Signature

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

## Parameters

<ParamField path="id" type="int" required>
  id of machine to schedule maintenance for
</ParamField>

<ParamField path="sdate" type="Any" required>
  maintenance start date in unix epoch time (UTC seconds)
</ParamField>

<ParamField path="duration" type="Any" required>
  maintenance duration in hours
</ParamField>

<ParamField path="category" type="str" default="not provided" />

## Returns

`dict`

## Example

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

client = VastAI(api_key="YOUR_API_KEY")
result = client.schedule_maint(id=12345, sdate="value", duration="value")
print(result)
```
