Skip to content

Set tour destination

Request

Security
ApiKeyAuth
Path
tourIdstring, (uuid)required

Unique tour identifier (generated by Better Route backend)

Example:3fa85f64-5717-4562-b3fc-2c963f66afa6
Bodyapplication/jsonrequired
latnumber, (double), [ -90 .. 90 ]required

Latitude

Example:52.52
lonnumber, (double), [ -180 .. 180 ]required

Longitude

Example:13.405
countrystring or null

Country as "alpha-2 code" of ISO 3166 (https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes). If this value is not provided, the country of the depot that this tour belongs to will be used.

Example:"DE"
curl -i -X PUT \
  https://dev.routes.bettermile.com/v1/tours/3fa85f64-5717-4562-b3fc-2c963f66afa6/destination \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -d '{
    "country": "DE",
    "lat": 52.52,
    "lon": 13.405
  }'

Responses

Tour destination has been set successfully

Bodyapplication/json
dataobject
Example:
{}
Response
{ "data": {} }