---
title: "Create a light"
method: PUT
path: "/api/lights"
tags: ["Lighting"]
---

# Create a light

`PUT /api/lights`

## Request body

- Light
  - `id` string
  - `name` string, required
  - `jack` string
  - `enable` boolean
  - `channels` object — Map of channel index to channel config

## Response `200`

Created

- Light
  - `id` string
  - `name` string, required
  - `jack` string
  - `enable` boolean
  - `channels` object — Map of channel index to channel config

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