Update State Lists

API 7.0

You can also update state lists in Touch Portal. These state lists needs to be defined in the entry file.

Sending a piece of data (a message) to Touch Portal should always end with a newline character. This will indicate Touch Portal that it is the whole message.


In this case, Touch Portal will show a different list for choice data with the given state id where it is used.

Key Type Req. Api Description
type Text yes 7.0 The type of message. Currently the only option is "choiceUpdate". This will let Touch Portal know that we are about to change a choice list.
id Text yes 7.0 The state id to set/update
value Array Yes 7.0 The collection of texts that should be the new list to display for this given choice list id.