Schedule maintenance for a machine.
This is a host method, used for managing machines you are renting out on Vast.ai.
Signature
VastAI.schedule_maint(id: int, sdate: Optional[float] = None, duration: Optional[float] = None) -> str
Parameters
Returns
str — Result from the API call.
Example
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
result = client.schedule_maint(id=12345)
print(result)