---
title: "Control equipment power state"
method: POST
path: "/api/equipment/{id}/control"
tags: ["Equipment"]
---

# Control equipment power state

`POST /api/equipment/{id}/control`

## Path parameters

- `id` string, required

## Request body

- EquipmentAction
  - `on` boolean, required — Desired power state for the equipment

## Response `200`

Equipment state changed successfully

- Equipment
  - `id` string — Unique identifier for the equipment
  - `name` string, required — Name of the equipment (e.g., "Main Light", "Heater")
  - `outlet` string, required — Identifier of the outlet this equipment is connected to
  - `on` boolean — Current power state of the equipment
  - `stay_off_on_boot` boolean — If true, equipment will not be powered on during boot sequence
  - `boot_delay` integer — Seconds to wait after powering on during boot sequence

## Other responses

- `400` — Bad request - invalid input
- `401` — Unauthorized - valid session required
- `404` — Equipment not found

---

[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)
