Required role: | Consumer |
PUT | /searches/UpdateSavedSearch |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports ConsumerApi
Namespace Global
End Namespace
VB.NET UpdateSavedSearchRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /searches/UpdateSavedSearch HTTP/1.1
Host: consumer-api.brovs.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<UpdateSavedSearchRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ConsumerApi.Dto">
<Filter>
<AdMessageGuid>00000000-0000-0000-0000-000000000000</AdMessageGuid>
<BarSpecialitySlugs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</BarSpecialitySlugs>
<BarTypeSlugs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</BarTypeSlugs>
<BrandNames xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</BrandNames>
<CategoryAbsoluteSlugs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</CategoryAbsoluteSlugs>
<CuisineSlugs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</CuisineSlugs>
<EatingSuitabilitySlugs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</EatingSuitabilitySlugs>
<MealTypeSlugs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</MealTypeSlugs>
<OpenAt xmlns:d3p1="http://schemas.datacontract.org/2004/07/Entities.Common">
<d3p1:Hour>0</d3p1:Hour>
<d3p1:Minute>0</d3p1:Minute>
<d3p1:WeekDay>Sunday</d3p1:WeekDay>
</OpenAt>
<OutdoorSeating>false</OutdoorSeating>
<Parking xmlns:d3p1="http://schemas.datacontract.org/2004/07/Entities.Database">
<d3p1:Parking>StreetParking</d3p1:Parking>
</Parking>
<PaymentOptions xmlns:d3p1="http://schemas.datacontract.org/2004/07/Entities.Database">
<d3p1:PaymentOption>Visa</d3p1:PaymentOption>
</PaymentOptions>
<PlaceGuid>00000000-0000-0000-0000-000000000000</PlaceGuid>
<PriceMainDishes xmlns:d3p1="http://schemas.datacontract.org/2004/07/Entities.Database">
<d3p1:PriceMainDish>Value</d3p1:PriceMainDish>
</PriceMainDishes>
<SaveFoodAndMoney>false</SaveFoodAndMoney>
<TakeAwaySlugs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</TakeAwaySlugs>
<Term>String</Term>
<WearPriceProfileSlugs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</WearPriceProfileSlugs>
<WheelChairAccessible>false</WheelChairAccessible>
<Wifi>false</Wifi>
</Filter>
<Id>0</Id>
<Location>
<Latitude>0</Latitude>
<Longitude>0</Longitude>
<SearchRadiusInKm>0</SearchRadiusInKm>
</Location>
<Name>String</Name>
</UpdateSavedSearchRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <UpdateSavedSearchResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ConsumerApi.Dto"> <Success>false</Success> </UpdateSavedSearchResponse>