PUT api/Content/v3/CreateTour
Request Information
URI Parameters
None.
Body Parameters
APITourRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| TourId | integer |
None. |
|
| CustomerId | integer |
None. |
|
| UniqueId | globally unique identifier |
None. |
|
| UserUniqueId | integer |
None. |
|
| Name | string |
None. |
|
| BreweryIds | Collection of integer |
None. |
|
| RegionId | integer |
None. |
|
| Direction | boolean |
None. |
|
| NoOfStops | integer |
None. |
|
| TotalDistance | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"TourId": 1,
"CustomerId": 2,
"UniqueId": "594dd6ca-6967-4a36-9f8b-905302a21757",
"UserUniqueId": 4,
"Name": "sample string 5",
"BreweryIds": [
1,
2
],
"RegionId": 6,
"Direction": true,
"NoOfStops": 1,
"TotalDistance": 1.0
}
application/xml, text/xml
Sample:
<APITourRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tsunami.Model">
<BreweryIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:long>1</d2p1:long>
<d2p1:long>2</d2p1:long>
</BreweryIds>
<CustomerId>2</CustomerId>
<Direction>true</Direction>
<Name>sample string 5</Name>
<NoOfStops>1</NoOfStops>
<RegionId>6</RegionId>
<TotalDistance>1</TotalDistance>
<TourId>1</TourId>
<UniqueId>594dd6ca-6967-4a36-9f8b-905302a21757</UniqueId>
<UserUniqueId>4</UserUniqueId>
</APITourRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
APITourResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | boolean |
None. |
|
| TourId | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Status": true,
"TourId": 2
}
application/xml, text/xml
Sample:
<APITourResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tsunami.Model"> <Status>true</Status> <TourId>2</TourId> </APITourResponse>