PATCH api/v{version}/Providers/me/businesses/{businessId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
businessId

integer

Required

version

string

None.

Body Parameters

BusinessPatchUpdateModel
NameDescriptionTypeAdditional information
Title

string

None.

Description

string

None.

PhoneNo

string

None.

Address

string

None.

GeoId

integer

None.

Avatar

string

None.

Location

GeoLocation

None.

WorkingHours

Collection of WorkingHour

None.

Categories

JSONPatchItemStaticOfListOfBusinessCategories

None.

Services

JSONPatchItemStaticOfListOfBusinessServices

None.

AvailabilityStatusId

byte

None.

Price

decimal number

None.

PriceStart

decimal number

None.

PriceEnd

decimal number

None.

PriceType

FacilityPriceType

None.

Request Formats

application/json, text/json

Sample:
{
  "Title": "sample string 1",
  "Description": "sample string 2",
  "PhoneNo": "sample string 3",
  "Address": "sample string 4",
  "GeoId": 1,
  "Avatar": "sample string 5",
  "Location": {
    "Lat": 1.1,
    "Lng": 1.1
  },
  "WorkingHours": [
    {
      "DayOfWeek": 0,
      "StartAt": 1,
      "EndAt": 1,
      "Is24HourOpen": true
    },
    {
      "DayOfWeek": 0,
      "StartAt": 1,
      "EndAt": 1,
      "Is24HourOpen": true
    }
  ],
  "Categories": {
    "Add": [
      {
        "Id": 1,
        "ParentId": 1,
        "IsMainCategory": true
      },
      {
        "Id": 1,
        "ParentId": 1,
        "IsMainCategory": true
      }
    ],
    "Remove": [
      {
        "Id": 1,
        "ParentId": 1,
        "IsMainCategory": true
      },
      {
        "Id": 1,
        "ParentId": 1,
        "IsMainCategory": true
      }
    ],
    "Edit": [
      {
        "Id": 1,
        "ParentId": 1,
        "IsMainCategory": true
      },
      {
        "Id": 1,
        "ParentId": 1,
        "IsMainCategory": true
      }
    ]
  },
  "Services": {
    "Add": [
      {
        "Id": 1,
        "CategoryId": 1,
        "Price": 1.0,
        "PriceStart": 1.0,
        "PriceEnd": 1.0,
        "PriceType": 1
      },
      {
        "Id": 1,
        "CategoryId": 1,
        "Price": 1.0,
        "PriceStart": 1.0,
        "PriceEnd": 1.0,
        "PriceType": 1
      }
    ],
    "Remove": [
      {
        "Id": 1,
        "CategoryId": 1,
        "Price": 1.0,
        "PriceStart": 1.0,
        "PriceEnd": 1.0,
        "PriceType": 1
      },
      {
        "Id": 1,
        "CategoryId": 1,
        "Price": 1.0,
        "PriceStart": 1.0,
        "PriceEnd": 1.0,
        "PriceType": 1
      }
    ],
    "Edit": [
      {
        "Id": 1,
        "CategoryId": 1,
        "Price": 1.0,
        "PriceStart": 1.0,
        "PriceEnd": 1.0,
        "PriceType": 1
      },
      {
        "Id": 1,
        "CategoryId": 1,
        "Price": 1.0,
        "PriceStart": 1.0,
        "PriceEnd": 1.0,
        "PriceType": 1
      }
    ]
  },
  "AvailabilityStatusId": 64,
  "Price": 1.0,
  "PriceStart": 1.0,
  "PriceEnd": 1.0,
  "PriceType": 1
}

application/xml, text/xml

Sample:
<BusinessPatchUpdateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.BindingModels">
  <Price xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">1</Price>
  <PriceEnd xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">1</PriceEnd>
  <PriceStart xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">1</PriceStart>
  <PriceType xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">Unknown</PriceType>
  <Address>sample string 4</Address>
  <AvailabilityStatusId>64</AvailabilityStatusId>
  <Avatar>sample string 5</Avatar>
  <Categories xmlns:d2p1="http://schemas.datacontract.org/2004/07/FastFixCore.Common.UDTs">
    <d2p1:Add>
      <BusinessCategories>
        <Id>1</Id>
        <IsMainCategory>true</IsMainCategory>
        <ParentId>1</ParentId>
      </BusinessCategories>
      <BusinessCategories>
        <Id>1</Id>
        <IsMainCategory>true</IsMainCategory>
        <ParentId>1</ParentId>
      </BusinessCategories>
    </d2p1:Add>
    <d2p1:Edit>
      <BusinessCategories>
        <Id>1</Id>
        <IsMainCategory>true</IsMainCategory>
        <ParentId>1</ParentId>
      </BusinessCategories>
      <BusinessCategories>
        <Id>1</Id>
        <IsMainCategory>true</IsMainCategory>
        <ParentId>1</ParentId>
      </BusinessCategories>
    </d2p1:Edit>
    <d2p1:Remove>
      <BusinessCategories>
        <Id>1</Id>
        <IsMainCategory>true</IsMainCategory>
        <ParentId>1</ParentId>
      </BusinessCategories>
      <BusinessCategories>
        <Id>1</Id>
        <IsMainCategory>true</IsMainCategory>
        <ParentId>1</ParentId>
      </BusinessCategories>
    </d2p1:Remove>
  </Categories>
  <Description>sample string 2</Description>
  <GeoId>1</GeoId>
  <Location xmlns:d2p1="http://schemas.datacontract.org/2004/07/FastFixCore.Common">
    <d2p1:Lat>1.1</d2p1:Lat>
    <d2p1:Lng>1.1</d2p1:Lng>
  </Location>
  <PhoneNo>sample string 3</PhoneNo>
  <Services xmlns:d2p1="http://schemas.datacontract.org/2004/07/FastFixCore.Common.UDTs">
    <d2p1:Add>
      <BusinessServices>
        <Price xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">1</Price>
        <PriceEnd xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">1</PriceEnd>
        <PriceStart xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">1</PriceStart>
        <PriceType xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">Unknown</PriceType>
        <CategoryId>1</CategoryId>
        <Id>1</Id>
      </BusinessServices>
      <BusinessServices>
        <Price xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">1</Price>
        <PriceEnd xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">1</PriceEnd>
        <PriceStart xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">1</PriceStart>
        <PriceType xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">Unknown</PriceType>
        <CategoryId>1</CategoryId>
        <Id>1</Id>
      </BusinessServices>
    </d2p1:Add>
    <d2p1:Edit>
      <BusinessServices>
        <Price xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">1</Price>
        <PriceEnd xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">1</PriceEnd>
        <PriceStart xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">1</PriceStart>
        <PriceType xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">Unknown</PriceType>
        <CategoryId>1</CategoryId>
        <Id>1</Id>
      </BusinessServices>
      <BusinessServices>
        <Price xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">1</Price>
        <PriceEnd xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">1</PriceEnd>
        <PriceStart xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">1</PriceStart>
        <PriceType xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">Unknown</PriceType>
        <CategoryId>1</CategoryId>
        <Id>1</Id>
      </BusinessServices>
    </d2p1:Edit>
    <d2p1:Remove>
      <BusinessServices>
        <Price xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">1</Price>
        <PriceEnd xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">1</PriceEnd>
        <PriceStart xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">1</PriceStart>
        <PriceType xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">Unknown</PriceType>
        <CategoryId>1</CategoryId>
        <Id>1</Id>
      </BusinessServices>
      <BusinessServices>
        <Price xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">1</Price>
        <PriceEnd xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">1</PriceEnd>
        <PriceStart xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">1</PriceStart>
        <PriceType xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.Common.Entities">Unknown</PriceType>
        <CategoryId>1</CategoryId>
        <Id>1</Id>
      </BusinessServices>
    </d2p1:Remove>
  </Services>
  <Title>sample string 1</Title>
  <WorkingHours>
    <WorkingHour>
      <DayOfWeek>Sunday</DayOfWeek>
      <EndAt>1</EndAt>
      <Is24HourOpen>true</Is24HourOpen>
      <StartAt>1</StartAt>
    </WorkingHour>
    <WorkingHour>
      <DayOfWeek>Sunday</DayOfWeek>
      <EndAt>1</EndAt>
      <Is24HourOpen>true</Is24HourOpen>
      <StartAt>1</StartAt>
    </WorkingHour>
  </WorkingHours>
</BusinessPatchUpdateModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'BusinessPatchUpdateModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.