---
title: "Updates the state of an item."
method: PUT
path: "/items/{itemname}/state"
tags: ["items"]
---

# Updates the state of an item.

`PUT /items/{itemname}/state`

## Path parameters

- `itemname` string, required

## Query parameters

- `source` string

## Headers

- `Accept-Language` string
- `X-OpenHAB-Source` string

## Response `202`

Accepted

## Other responses

- `400` — Item state 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/versions/0f2ce17cab3e/schema)
