trips

Undo the most recent change to a trip's plan — whoever made it (you, Horizon, or the traveller in the app)

Undo the most recent change to a trip's plan — whoever made it (you, Horizon, or the traveller in the app). Puts back the stops, dates, cities, nights, pace, drive and stop states as they were. The plan version moves on.

post/actions/undo_plan_change

Request

  • Base URL: https://findinghorizons.ca/api/v1
  • URL: https://findinghorizons.ca/api/v1/actions/undo_plan_change
  • Auth: OAuth 2 (authorization code, authorization URL https://findinghorizons.ca/api/mcp/authorize, token URL https://findinghorizons.ca/api/mcp/oauth/token, scopes: trips:manage)

Headers

Idempotency-Keystring required

One per intended change; a repeat never runs twice.

X-FH-Taskstring

Your task reference.

Request body

tripIdstring required
todaystring

The traveller's own date, YYYY-MM-DD, where the action needs one

expectedVersioninteger

For a change to a trip: the planVersion you last read

Response

Done — { ok, api, action, result, card, operation? }

Changes

No recorded changes to this operation across all 1 revision of this API.