BusinessApi

<back to all web services

PlaceUpdateRequest

Business
Requires Authentication
Required role:Business
The following routes are available for this service:
POST/place/update
namespace BusinessApi

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type OpeningHour() = 
        member val OpenAtHour:Int32 = new Int32() with get,set
        member val OpenAtMinute:Int32 = new Int32() with get,set
        member val CloseAtHour:Int32 = new Int32() with get,set
        member val CloseAtMinute:Int32 = new Int32() with get,set

    [<AllowNullLiteral>]
    type WeeklyOpeningHours() = 
        member val Monday:OpeningHour = null with get,set
        member val Tuesday:OpeningHour = null with get,set
        member val Wednesday:OpeningHour = null with get,set
        member val Thursday:OpeningHour = null with get,set
        member val Friday:OpeningHour = null with get,set
        member val Saturday:OpeningHour = null with get,set
        member val Sunday:OpeningHour = null with get,set

    [<AllowNullLiteral>]
    type OpeningHours() = 
        member val Weekly:WeeklyOpeningHours = null with get,set

    type Parking =
        | StreetParking = 0
        | ParkingGarageNearby = 1

    type PaymentOption =
        | Visa = 0
        | MasterCard = 1
        | AmericanExpress = 2
        | Diners = 3
        | Vipps = 4

F# PlaceUpdateRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
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: text/jsv
Content-Length: length

{
	placeId: 0
}