> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vast.ai/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: Optional[float] = None, duration: Optional[float] = None) -> str
```

## Parameters

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

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

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

## Returns

`str`, Result from the API call.

## Example

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

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