items
Sends a command to an item.
Changed onpost/items/{itemname}
Request
- Base URL/rest (relative, and the document was published on a file host, not at the API’s origin)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
Response
OK
Changes
- breaking
added the new required request property
- breaking
the request's body type changed from
stringtoobject
- breaking
- info
added the new optional
headerrequest parameterX-OpenHAB-Source - info
added the new optional
queryrequest parametersource - info
added the media type
application/jsonto the request body
- info