Public API v1

Link a goal to a trip (sets status to "planning").

post/v1/goals/{goalId}/link-trip

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/goals/{goalId}/link-trip
  • Auth: API key in header X-API-Key

Path parameters

goalIdstring required

Request body

tripIdstring required

Trip id to link the goal to.

tripNamestring required

Trip name (echoed back on the goal for display).

Response

idstring required
userIdstring required
namestring required
descriptionstring
notesstring
countrystring
regionstring
type'country' | 'region' | 'city' | 'place' | 'experience' required
status'dreaming' | 'planning' | 'visited' required
priority'someday' | 'soon' | 'must_do' required
tagsstring[]
imageUrlstring
userUploadedImageUrlstring
bestTimeToVisitstring[]
estimatedBudgetnumber
currencystring
estimatedDurationstring
linkedTripIdstring

Trip id this goal is currently linked to (when status=planning or visited).

linkedTripNamestring
visitedDatestring date-time
collectionIdsstring[]
createdAtstring date-time required
updatedAtstring date-time required

Changes

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