Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

URL

http://<<ip address>>/rest/controller/«controllerno»/tag/

Method

PUT

Description

Sets value and color on a range of tags.

controllerno is a number

Info

For the standardised PTL cabinet, controller 1 is the front, controller 2 is the back. Tag IDs are numbered from 11 upwards (left-to-right, bottom-to-top).

Request

Code Block
languagejson
[
  {
    "tagid": «tagid»,
    "value": «valuetodisplay»,
    ["color": "red|green|orange|blue|pink|cyan|none"]
  },
  ...
]

color is optional. When no color is chosen, it defaults to red.

value should be a string.

All In v2.1.1, all tags are switched off before the range is set, this means sending [] causes all tags to be switched off.

In v2.1.2+, you need to handle the switching off of tags by yourself, using the cabinet/lightest call (when used with off, this switches off all lights).

Response

HTTP204 when successful

Possible Errors

HTTP400 when request was invalid

Code Block
{
  "message": «human readable error»
}

HTTP404 with no body when controller does not exist

HTTP409 when cabinet not in correct mode

Note when the cabinet sides setting is set to frontonly, controller 2 will not be available and this will result in an HTTP404.

Remarks

New in version 2.1.0.