Preview a trip's risk assessment with changed answers

Returns the risk assessment view as it would read with the given answers, so an admin can see the new result before saving. Nothing is stored and no external check runs: each area whose tree reads a changed answer is evaluated again from the values of the stored assessment.

preview.changedAnswerKeys lists the answers that differ from the stored ones. An area that needs a value the stored assessment never resolved keeps its stored result, is listed in preview.incompleteAreaKeys and carries a NEEDS_REASSESSMENT notice. Save with POST /trips/{id}/reassess-with-answers. Admin-only.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
number
required

Trip ID

Body Params
number

Multi-destination trips: the journey leg to preview. Required when the trip has more than one leg.

answers
object
required

Provisional risk answers keyed by the tree node fieldKey, applied over the stored answers for this preview only. Values must be boolean or number. Nothing is saved.

Responses

400

An answer is not a boolean or number, or the trip has more than one leg and no legId was given

403

The caller is not an admin or may not view this trip

404

Unknown trip id, or the leg does not belong to the trip

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json