How to: Configure the state machine
1 min
for information about prerequisites, see creating participants https //docs getos1 com/integrate with 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 https //docs getos1 com/reference/transition the current state of the participant 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" }