Activities

Add an activity

A restaurant, place, activity or note on a trip. A city given here is recorded among the trip's places.

post/api/trips/{id}/experiences

Request

  • Base URL: https://trvlrr.app
  • URL: https://trvlrr.app/api/trips/{id}/experiences
  • Auth: HTTP bearer

Path parameters

idstring required

The trip id.

Request body

kind'restaurant' | 'place' | 'activity' | 'note' required

restaurant, place, activity or note.

namestring required

What it is, e.g. teamLab Planets or Sukiyabashi Jiro.

citystring nullable

City.

countrystring nullable

Country (name or ISO code).

localitystring nullable

The city it belongs to.

locality_countrystring nullable

ISO alpha-2 of that city.

datestring nullable

Date, YYYY-MM-DD. Optional.

timestring nullable

Local time "HH:MM". Optional.

tzstring nullable

IANA time zone.

at_utcstring nullable

Derived; only set to override.

ratinginteger nullable

1–5, for places already visited.

notestring nullable

A note about it.

price_rawstring nullable

Price with currency.

latnumber nullable

Latitude.

lonnumber nullable

Longitude.

remind_onstring nullable

A day to be reminded about it. Date, YYYY-MM-DD. null clears it.

remind_timestring nullable

Time of day for the reminder, "HH:MM" local; empty means 09:00.

payment_status'paid' | 'due' | 'on_arrival' | 'null' nullable

paid, due (to pay before the trip) or on_arrival (pay there or on the day).

payment_method'card' | 'cash' | 'null' nullable

card or cash.

Response

The new activity.

idstring required
trip_idstring required
kind'restaurant' | 'place' | 'activity' | 'note' required
namestring required
citystring nullable required
latnumber nullable required
lonnumber nullable required
datestring nullable required

Date, YYYY-MM-DD.

ratinginteger nullable required
notestring nullable required
created_bystring nullable required
created_atstring required
timestring nullable required

Local time "HH:MM".

price_rawstring nullable required
booked_atstring nullable required
doneinteger required

0 or 1.

journalstring nullable required
categorystring nullable required
planning_statestring nullable required
countrystring nullable required

ISO alpha-2.

cancellation_statestring nullable required
cancelled_reasonstring nullable required
tzstring nullable required
at_utcstring nullable required
remind_onstring nullable

Date, YYYY-MM-DD.

remind_timestring nullable

"HH:MM"; empty means 09:00.

payment_statusstring nullable
payment_methodstring nullable

Changes

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