---
title: "Create a temperature controller"
method: PUT
path: "/api/tcs"
tags: ["Temperature"]
---

# Create a temperature controller

`PUT /api/tcs`

## Request body

- TemperatureController
  - `id` string
  - `name` string, required
  - `min` number, double
  - `max` number, double
  - `hysteresis` number, double
  - `heater` string
  - `cooler` string
  - `period` integer
  - `control` boolean
  - `enable` boolean
  - `fail_safe` boolean
  - `sensor` string
  - `analog_input` string
  - `fahrenheit` boolean
  - `is_macro` boolean
  - `one_shot` boolean
  - `notify` object
  - `chart` object

## Response `200`

Created

- TemperatureController
  - `id` string
  - `name` string, required
  - `min` number, double
  - `max` number, double
  - `hysteresis` number, double
  - `heater` string
  - `cooler` string
  - `period` integer
  - `control` boolean
  - `enable` boolean
  - `fail_safe` boolean
  - `sensor` string
  - `analog_input` string
  - `fahrenheit` boolean
  - `is_macro` boolean
  - `one_shot` boolean
  - `notify` object
  - `chart` object

## Other responses

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

## Changes

- **2026-05-18** `799d7dce71bf` — 1 info
  - endpoint added
- **2026-05-17** `246823ed55cc` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/reef-pi/apis/reef-pi-api/changes/api/tcs/put.md)

---

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