Trips
Update trip
Update Trip
patch/draft_trips/{trip_uuid}
Request
- Base URLhttps://api.wetravel.com/v2
- URLhttps://api.wetravel.com/v2/draft_trips/{trip_uuid}
- Auth
- HTTP bearer
- or API key in header X-Api-Key
Path parameters
trip_uuidstring required
UUID of the trip
Request body
Example request
{
"data": {
"trip_id": "TRIP20",
"title": "Epic London Trip",
"destination": "London, Uk",
"start_date": "2021-05-07T00:00:00.000Z",
"end_date": "2021-05-07T00:00:00.000Z",
"group_min": 5,
"group_max": 15,
"currency": "USD",
"participant_list_show_type": "everyone",
"welcome_message": "YAY!!!",
"participant_fees": "all",
"listing_status": "private",
"waiting_list_enabled": true,
"can_contribute": true,
"carbon_offset": {
"enabled": true,
"percentage": 2.5,
"paid_by_participant": true
}
}
}Response
Successfully updated
Example response
{
"data": {
"uuid": "12345678",
"created_at": "2017-07-21T17:32:28.000Z",
"trip_id": "TRIP20",
"url": "https://wetravel.com/trips/123456",
"title": "Epic London Trip",
"destination": "London, Uk",
"start_date": "2021-05-07T00:00:00.000Z",
"end_date": "2021-05-07T00:00:00.000Z",
"group_min": 5,
"group_max": 15,
"currency": "USD",
"participant_list_show_type": "everyone",
"welcome_message": "YAY!!!",
"participant_fees": "all",
"listing_status": "private",
"waiting_list_enabled": true,
"can_contribute": true,
"carbon_offset": {
"enabled": true,
"percentage": 2.5,
"paid_by_participant": true
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.