TravelyfeHelp
DevelopersAPI ReferenceDays

Update A Stop

PATCH
/v1/itinerary/{id}/stop/{stopId}

Merges the fields you send into a stop.

AuthorizationBearer <token>

A Travelyfe access token.

In: header

Path Parameters

id*string

The itinerary id (UUID).

Formatuuid
stopId*string

The stop id.

Header Parameters

If-Match*string

The ETag you last read. A write with an out-of-date ETag is refused with itineraryModified.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/itinerary/497f6eca-6276-4993-bfeb-53cbbbba6f08/stop/string" \  -H "If-Match: "v42"" \  -H "Content-Type: application/json" \  -d '{}'
{  "title": "string",  "destination": "string",  "origin": "string",  "summary": "string",  "center": {    "latitude": 0,    "longitude": 0  },  "startDate": "2019-08-24",  "tags": [    "string"  ],  "bestSeason": "string",  "homeCurrency": "string",  "days": [    {      "id": "string",      "title": "string",      "summary": "string",      "imageURL": "http://example.com",      "stops": [        {          "id": "string",          "name": "string",          "address": "string",          "category": "string",          "coordinate": {            "latitude": 0,            "longitude": 0          },          "startTime": "string",          "durationMinutes": 0,          "note": "string",          "phone": "string",          "bookingURL": "http://example.com"        }      ]    }  ],  "packing": [    {      "id": "string",      "name": "string",      "quantity": 0,      "category": "string",      "isPacked": true    }  ],  "expenses": [    {      "id": "string",      "title": "string",      "amount": 0,      "currency": "string",      "date": "2019-08-24",      "category": "string"    }  ],  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "visibility": "private",  "role": "owner",  "author": {},  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "likesCount": 0,  "viewsCount": 0}