---
title: "Update autopilot configuration"
method: PUT
path: "/bus/autopilot"
tags: ["bus"]
---

# Update autopilot configuration

`PUT /bus/autopilot`

Updates the autopilot configuration.

## Request body

- object
  - `enabled` boolean — Whether the autopilot is enabled
  - `contracts` ContractsConfig
    - `amount` integer — The minimum number of contracts to form
    - `period` integer — The length of a contract's period in blocks (1 block being 10 minutes on average)
    - `renewWindow` integer — The number of blocks before the end of a contract that a contract should be renewed
    - `download` integer — Expected download bandwidth used per period in bytes
    - `upload` integer — Expected upload bandwidth used per period in bytes
    - `storage` integer — Expected amount of data stored in bytes
    - `prune` boolean — Whether to automatically prune deleted data from contracts
  - `hosts` HostsConfig
    - `maxConsecutiveScanFailures` integer — The maximum number of consecutive scan failures before a host is removed from the database
    - `maxDowntimeHours` integer — The maximum number of hours a host can be offline before it is removed from the database
    - `minProtocolVersion` string — The minimum supported protocol version of a host to be considered good

## Response `200`

Successfully updated autopilot configuration

## Other responses

- `400` — Malformed request
- `500` — Internal server error

---

[API](https://skmtc.net/siafoundation/apis/renterd-api.md) · [All operations](https://skmtc.net/siafoundation/apis/renterd-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/siafoundation/renterd-api/versions/184a3d5207da/schema)
