| Required role: | Business |
| POST | /place/update |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BusinessApi
Namespace Global
Namespace BusinessApi
Public Partial Class OpeningHour
Public Property OpenAtHour As Integer
Public Property OpenAtMinute As Integer
Public Property CloseAtHour As Integer
Public Property CloseAtMinute As Integer
End Class
Public Partial Class OpeningHours
Public Property Weekly As WeeklyOpeningHours
End Class
Public Partial Class WeeklyOpeningHours
Public Property Monday As OpeningHour
Public Property Tuesday As OpeningHour
Public Property Wednesday As OpeningHour
Public Property Thursday As OpeningHour
Public Property Friday As OpeningHour
Public Property Saturday As OpeningHour
Public Property Sunday As OpeningHour
End Class
Public Enum Parking
StreetParking
ParkingGarageNearby
End Enum
Public Enum PaymentOption
Visa
MasterCard
AmericanExpress
Diners
Vipps
End Enum
End Namespace
End Namespace
VB.NET PlaceUpdateRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /place/update HTTP/1.1
Host: business-api.brovs.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"placeId":0,"name":"String","phone":"String","email":"String","street":"String","postalCode":"String","region":"String","overview":"String","website":"String","webShop":"String","longitude":0,"latitude":0,"wheelChairAccessible":false,"wifi":false,"outdoorSeating":false,"saveFoodAndMoney":false,"openingHours":{"weekly":{"monday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"tuesday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"wednesday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"thursday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"friday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"saturday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"sunday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0}}},"parking":["StreetParking"],"paymentOptions":["Visa"]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"placeId":0}