Worked example (changing the DMX channel of a DMX Color Thing from 1/123 to 1/321):
openhabian@openhabian:~ $ curl -X 'GET' 'http://192.168.1.181:8080/rest/things/dmx%3Acolor%3Ae984c6fa47%3A5b4ccdb016' -H 'accept: application/json' -H @headers_api.txt {"channels":[{"linkedItems":[],"uid":"dmx:color:e984c6fa47:5b4ccdb016:brightness_r","id":"brightness_r","channelTypeUID":"dmx:brightness","itemType":"Dimmer","kind":"STATE","label":"Brightness","description":"Allows to send a brightness value to the thing. If the thing is associated with more than one DMX channel, the values is used for ALL DMX channels.","defaultTags":["Control","Light"],"properties":{},"configuration":{}},{"linkedItems":[],"uid":"dmx:color:e984c6fa47:5b4ccdb016:brightness_g","id":"brightness_g","channelTypeUID":"dmx:brightness","itemType":"Dimmer","kind":"STATE","label":"Brightness","description":"Allows to send a brightness value to the thing. If the thing is associated with more than one DMX channel, the values is used for ALL DMX channels.","defaultTags":["Control","Light"],"properties":{},"configuration":{}},{"linkedItems":[],"uid":"dmx:color:e984c6fa47:5b4ccdb016:brightness_b","id":"brightness_b","channelTypeUID":"dmx:brightness","itemType":"Dimmer","kind":"STATE","label":"Brightness","description":"Allows to send a brightness value to the thing. If the thing is associated with more than one DMX channel, the values is used for ALL DMX channels.","defaultTags":["Control","Light"],"properties":{},"configuration":{}},{"linkedItems":[],"uid":"dmx:color:e984c6fa47:5b4ccdb016:color","id":"color","channelTypeUID":"dmx:color","itemType":"Color","kind":"STATE","label":"Color","description":"Allows to send a color value to the thing. If the thing is associated with more than one DMX channel, color will be re-use in 3-channel groups.","defaultTags":["Control","Light"],"properties":{},"configuration":{}}],"statusInfo":{"status":"UNINITIALIZED","statusDetail":"BRIDGE_UNINITIALIZED"},"editable":true,"label":"DMX Color (RGB) Dimmer","bridgeUID":"dmx:artnet-bridge:e984c6fa47","configuration":{"dmxid":"1/123"},"properties":{},"UID":"dmx:color:e984c6fa47:5b4ccdb016","thingTypeUID":"dmx:color"}openhabian@openhabian:~ $
openhabian@openhabian:~ $ curl -X 'PUT' 'http://192.168.1.181:8080/rest/things/dmx%3Acolor%3Ae984c6fa47%3A5b4ccdb016' -H 'accept: */*' -H 'Content-Type: application/json' -H @headers_api.txt -d '{ "configuration": { "dmxid": "1/321" } }'
{"channels":[{"linkedItems":[],"uid":"dmx:color:e984c6fa47:5b4ccdb016:brightness_r","id":"brightness_r","channelTypeUID":"dmx:brightness","itemType":"Dimmer","kind":"STATE","label":"Brightness","description":"Allows to send a brightness value to the thing. If the thing is associated with more than one DMX channel, the values is used for ALL DMX channels.","defaultTags":["Control","Light"],"properties":{},"configuration":{}},{"linkedItems":[],"uid":"dmx:color:e984c6fa47:5b4ccdb016:brightness_g","id":"brightness_g","channelTypeUID":"dmx:brightness","itemType":"Dimmer","kind":"STATE","label":"Brightness","description":"Allows to send a brightness value to the thing. If the thing is associated with more than one DMX channel, the values is used for ALL DMX channels.","defaultTags":["Control","Light"],"properties":{},"configuration":{}},{"linkedItems":[],"uid":"dmx:color:e984c6fa47:5b4ccdb016:brightness_b","id":"brightness_b","channelTypeUID":"dmx:brightness","itemType":"Dimmer","kind":"STATE","label":"Brightness","description":"Allows to send a brightness value to the thing. If the thing is associated with more than one DMX channel, the values is used for ALL DMX channels.","defaultTags":["Control","Light"],"properties":{},"configuration":{}},{"linkedItems":[],"uid":"dmx:color:e984c6fa47:5b4ccdb016:color","id":"color","channelTypeUID":"dmx:color","itemType":"Color","kind":"STATE","label":"Color","description":"Allows to send a color value to the thing. If the thing is associated with more than one DMX channel, color will be re-use in 3-channel groups.","defaultTags":["Control","Light"],"properties":{},"configuration":{}}],"statusInfo":{"status":"UNINITIALIZED","statusDetail":"BRIDGE_UNINITIALIZED"},"editable":true,"label":"DMX Color (RGB) Dimmer","bridgeUID":"dmx:artnet-bridge:e984c6fa47","configuration":{"dmxid":"1/321"},"properties":{},"UID":"dmx:color:e984c6fa47:5b4ccdb016","thingTypeUID":"dmx:color"}openhabian@openhabian:~ $
openhabian@openhabian:~ $ curl -X 'GET' 'http://192.168.1.181:8080/rest/things/dmx%3Acolor%3Ae984c6fa47%3A5b4ccdb016' -H 'accept: application/json' -H @headers_api.txt {"channels":[{"linkedItems":[],"uid":"dmx:color:e984c6fa47:5b4ccdb016:brightness_r","id":"brightness_r","channelTypeUID":"dmx:brightness","itemType":"Dimmer","kind":"STATE","label":"Brightness","description":"Allows to send a brightness value to the thing. If the thing is associated with more than one DMX channel, the values is used for ALL DMX channels.","defaultTags":["Control","Light"],"properties":{},"configuration":{}},{"linkedItems":[],"uid":"dmx:color:e984c6fa47:5b4ccdb016:brightness_g","id":"brightness_g","channelTypeUID":"dmx:brightness","itemType":"Dimmer","kind":"STATE","label":"Brightness","description":"Allows to send a brightness value to the thing. If the thing is associated with more than one DMX channel, the values is used for ALL DMX channels.","defaultTags":["Control","Light"],"properties":{},"configuration":{}},{"linkedItems":[],"uid":"dmx:color:e984c6fa47:5b4ccdb016:brightness_b","id":"brightness_b","channelTypeUID":"dmx:brightness","itemType":"Dimmer","kind":"STATE","label":"Brightness","description":"Allows to send a brightness value to the thing. If the thing is associated with more than one DMX channel, the values is used for ALL DMX channels.","defaultTags":["Control","Light"],"properties":{},"configuration":{}},{"linkedItems":[],"uid":"dmx:color:e984c6fa47:5b4ccdb016:color","id":"color","channelTypeUID":"dmx:color","itemType":"Color","kind":"STATE","label":"Color","description":"Allows to send a color value to the thing. If the thing is associated with more than one DMX channel, color will be re-use in 3-channel groups.","defaultTags":["Control","Light"],"properties":{},"configuration":{}}],"statusInfo":{"status":"UNINITIALIZED","statusDetail":"BRIDGE_UNINITIALIZED"},"editable":true,"label":"DMX Color (RGB) Dimmer","bridgeUID":"dmx:artnet-bridge:e984c6fa47","configuration":{"dmxid":"1/321"},"properties":{},"UID":"dmx:color:e984c6fa47:5b4ccdb016","thingTypeUID":"dmx:color"}openhabian@openhabian:~ $
Sure, this doesn’t tackle your problem with PUT thing/thingUID/config
, but you should be able to use the worked example to get your job done.