You can also update choice lists in Touch Portal. This will update the choice lists with the given ID.
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 id.
Key | Type | Req. | Api | Description |
---|---|---|---|---|
type | Text | yes | 1.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 | 1.0 | The state id to set/update |
value | Array | Yes | 1.0 | The collection of texts that should be the new list to display for this given choice list id. |