---
title: "Create an ATO controller"
method: PUT
path: "/api/atos"
tags: ["ATO"]
---

# Create an ATO controller

`PUT /api/atos`

## Request body

- ATO
  - `id` string
  - `name` string, required
  - `inlet` string
  - `pump` string
  - `period` integer, required — Check period in seconds
  - `debounce` integer — Debounce duration in seconds
  - `control` boolean
  - `enable` boolean
  - `is_macro` boolean
  - `disable_on_alert` boolean
  - `one_shot` boolean
  - `notify` object
    - `enable` boolean
    - `max` integer

## Response `200`

Created

- ATO
  - `id` string
  - `name` string, required
  - `inlet` string
  - `pump` string
  - `period` integer, required — Check period in seconds
  - `debounce` integer — Debounce duration in seconds
  - `control` boolean
  - `enable` boolean
  - `is_macro` boolean
  - `disable_on_alert` boolean
  - `one_shot` boolean
  - `notify` object
    - `enable` boolean
    - `max` integer

## Other responses

- `400` — Bad request
- `401` — Unauthorized

---

[API](https://skmtc.net/reef-pi/apis/reef-pi-api.md) · [All operations](https://skmtc.net/reef-pi/apis/reef-pi-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/reef-pi/reef-pi-api/revisions/85b870dc1814/schema)
