OS1 Services
...
Participant
Integrate with Participants

How to: Configure the state machine

1min
for information about prerequisites, see creating participants if needed, you can override the default state machine for the participant to configure the state machine for the sample mobile device type, call the update state machine config endpoint and pass a request body similar to the following { "states" { "onboarding" { "defaultsubstate" "onboarding", "substates" \[ { "name" "onboarding", "transitions" \[ { "eventcode" "e 022", "destination" "active\ active" } ] } ] }, "active" { "defaultsubstate" "active", "substates" \[ { "name" "active", "transitions" \[ { "eventcode" "e 023", "destination" "active\ active", "reasoncode" "r 0001" } ] } ] }, "inactive" { "defaultsubstate" "inactive", "substates" \[ { "name" "inactive", "transitions" \[ { "eventcode" "e 024", "destination" "inactive\ dead", "reasoncode" "r 0001" } ] }, { "name" "dead", "transitions" \[] } ], "terminalstates" \[ "dead" ] } }, "terminalttl" "2m" }