# Set tour destination Endpoint: PUT /v1/tours/{tourId}/destination Version: 1.0.0 Security: ApiKeyAuth ## Path parameters: - `tourId` (string, required) Unique tour identifier (generated by Better Route backend) ## Request fields (application/json): - `lat` (number, required) Latitude - `lon` (number, required) Longitude - `country` (string,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. ## Response 200 fields (application/json): - `data` (object) Example: {} ## Response 400 fields (application/json): - `error` (object) Error response - `error.status` (integer) HTTP error status Example: 400 - `error.message` (string) Human readable error message Example: "'depot' field can't be null" - `error.errorCode` (string) Machine-friendly error message containing only alphanumeric characters and '.' Example: "tour.list.fetch.failed.bad.request" - `error.details` (array) ## Response 401 fields (application/json): - `error` (object) Error response - `error.status` (integer) HTTP error status Example: 400 - `error.message` (string) Human readable error message Example: "'depot' field can't be null" - `error.errorCode` (string) Machine-friendly error message containing only alphanumeric characters and '.' Example: "tour.list.fetch.failed.bad.request" - `error.details` (array) ## Response 404 fields (application/json): - `error` (object) Error response - `error.status` (integer) HTTP error status Example: 400 - `error.message` (string) Human readable error message Example: "'depot' field can't be null" - `error.errorCode` (string) Machine-friendly error message containing only alphanumeric characters and '.' Example: "tour.list.fetch.failed.bad.request" - `error.details` (array) ## Response 500 fields (application/json): - `error` (object) Error response - `error.status` (integer) HTTP error status Example: 400 - `error.message` (string) Human readable error message Example: "'depot' field can't be null" - `error.errorCode` (string) Machine-friendly error message containing only alphanumeric characters and '.' Example: "tour.list.fetch.failed.bad.request" - `error.details` (array)