Receive JSON payload from frontend relevant to current step
3.
Validate data for given step using helper function: validate_onboarding_step_data
4.
Update user record in db with new data
5.
Advance user's onbaording step if successful
6.
Marks onboarding as completed if final step reached
Frontend interaction: Frontend will POST user's input for each onboarding step to this endpoint. On success, frontend advances to next step/completion message, or if there is an error, frontend should display error messages returned.
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST '/onboarding/step/<int:step>'