userFlowStates
POST /v1/public/flowStates
Updates the user's state in a single Flow
Request
- The document declares no server URL.
- AuthHTTP bearer
Request body
Example request
{
"userId": "d34daa11-3745-4ac0-880e-d4b4d51fe13f",
"groupId": "x34daa11-3745-4ac0-880e-d4b4d51fe13f",
"flowSlug": "flow_abc",
"actionType": "COMPLETED_STEP"
}Response
The user's state in the Flow was updated
Example response
{
"eligibleFlows": [
{
"flowSlug": "flow_abc",
"flowName": "Onboarding Checklist",
"flowType": "ANNOUNCEMENT",
"data": {
"steps": [
{
"id": "step_abc",
"$state": {
"completed": true,
"skipped": true,
"started": true,
"visible": true,
"blocked": true,
"lastActionAt": "2024-09-01T00:00:00.000Z"
}
}
]
},
"$state": {
"currentStepId": "step_abc",
"currentStepIndex": 1,
"completed": true,
"started": true,
"skipped": true,
"visible": true,
"lastActionAt": "2024-09-01T00:00:00.000Z"
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.