PUT api/content/v4/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": "535174f7-cbd9-4567-ada1-b834e89f424e",
"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>535174f7-cbd9-4567-ada1-b834e89f424e</UniqueId>
<UserUniqueId>4</UserUniqueId>
</APITourRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
APICommonWrapperOfAPITourResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | HttpStatusCode |
None. |
|
| Message | string |
None. |
|
| Data | APITourResponse |
None. |
Response Formats
application/json, text/json
Sample:
{
"Status": 100,
"Message": "sample string 1",
"Data": {
"Status": true,
"TourId": 2
}
}
application/xml, text/xml
Sample:
<APICommonWrapperOfAPITourResponseZdSfSp5S xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tsunami.Model">
<Data>
<Status>true</Status>
<TourId>2</TourId>
</Data>
<Message>sample string 1</Message>
<Status>Continue</Status>
</APICommonWrapperOfAPITourResponseZdSfSp5S>