Public API v1

Add an event option to a variant.

post/v1/trips/{id}/variants/{variantId}/options/event

Request

  • Base URL: https://api.mynextadventure.cloud (the document declares no server; this is the origin it was published from)
  • URL: https://api.mynextadventure.cloud/v1/trips/{id}/variants/{variantId}/options/event
  • Auth: API key in header X-API-Key

Path parameters

idstring required
variantIdstring required

Request body

namestring required

Display name of the event exactly as a human would call it (e.g. "Louvre Museum"). Never embed price, dates, status or commentary here — those belong in totalCost, start/end and notes.

startstring date-time

Start datetime in ISO 8601.

endstring date-time

End datetime in ISO 8601.

totalCostnumber

Total cost of the event/ticket.

currencystring

Currency code (e.g. "GBP").

linkstring

URL for booking or more information.

notesstring

Free-form commentary: provenance, caveats, trade-offs. Anything without a dedicated field goes here, not in name.

userUploadedImageUrlstring

Photo of the place, shown on the map popup. Must be a directly-linkable image URL that allows hotlinking — Wikimedia Commons works, most search-result URLs do not.

Response

Option created.

Changes

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