---
title: "gpio/{pin}"
method: POST
path: "/api/gpio/{pin}"
tags: ["gpio"]
---

# gpio/{pin}

`POST /api/gpio/{pin}`

Configure a GPIO pin for output and set its value. Body: `{"value": 0|1}`.

## Request body

- object

## Response `200`

Object with `pin` and the applied `value`.

## Other responses

- `400` — Missing/invalid `value` field.
- `404` — The named pin does not exist.
- `500` — Error setting the pin.

---

[API](https://skmtc.net/falconchristmas/apis/fpp-api.md) · [All operations](https://skmtc.net/falconchristmas/apis/fpp-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/falconchristmas/fpp-api/versions/6fa524e15dd4/schema)
