---
title: "Sends a command to an item."
method: POST
path: "/items/{itemname}"
tags: ["items"]
---

# Sends a command to an item.

`POST /items/{itemname}`

## Path parameters

- `itemname` string, required

## Query parameters

- `source` string

## Headers

- `X-OpenHAB-Source` string

## Request body

- object
  - `value` string, required

## Response `200`

OK

## Other responses

- `400` — Item command null
- `404` — Item not found

---

[API](https://skmtc.net/openhab/apis/openhab-rest-api.md) · [All operations](https://skmtc.net/openhab/apis/openhab-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openhab/openhab-rest-api/revisions/0f2ce17cab3e/schema)
