---
title: "Update an analog input"
method: POST
path: "/api/analog_inputs/{id}"
tags: ["AnalogInputs"]
---

# Update an analog input

`POST /api/analog_inputs/{id}`

## Path parameters

- `id` string, required

## Request body

- AnalogInput
  - `id` string
  - `name` string, required
  - `pin` integer
  - `driver` string, required

## Response `200`

Analog input updated

- ErrorResponse
  - `message` string, required

## Other responses

- `400` — Invalid input
- `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)
