events

Add an event (eventId from find_events) to a day of one of the traveller's trips (date YYYY-MM-DD, optional startTime/en

Add an event (eventId from find_events) to a day of one of the traveller's trips (date YYYY-MM-DD, optional startTime/endTime HH:MM). If it clashes with something already that day, NOTHING is added: you get the clash in plain words and the options — ask the traveller, then call again with their choice (add_anyway to add over it). Owner or editor of the trip only.

post/actions/add_event_to_trip

Request

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

Headers

Idempotency-Keystring required

One per intended change; a repeat never runs twice.

X-FH-Taskstring

Your task reference.

Request body

eventIdstring required
tripIdstring required
datestring required
startTimestring
endTimestring
choicestring
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.