Public API v1

Add a new destination to a variant.

post/v1/trips/{id}/variants/{variantId}/destinations

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}/destinations
  • Auth: API key in header X-API-Key

Path parameters

idstring required
variantIdstring required

Request body

destinationstring required

Place name for this destination (e.g. "Lisbon, Portugal").

isReturnToHomeboolean

Marks this destination as the return-to-home leg. Server keeps it pinned to the end.

startDatestring date-time

Arrival date at this destination.

endDatestring date-time

Departure date from this destination.

notesstring

Free-form destination notes.

Response

destinationKeystring required

Server-assigned key for the newly-created destination.

Changes

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