items

Sends a command to an item.

Changed on
post/items/{itemname}

Request

Path parameters

itemnamestring required

item name

Query parameters

sourcestring

the source of the command

Headers

X-OpenHAB-Sourcestring

the source of the command; takes priority over the query parameter or JSON body if multiple are set

Request body

valuestring required

Response

OK

Changes

    • breaking

      added the new required request property

    • breaking

      the request's body type changed from string to object

    • info

      added the new optional header request parameter X-OpenHAB-Source

    • info

      added the new optional query request parameter source

    • info

      added the media type application/json to the request body