POST api/BranchContent

Updates the branch content from IDBS/Rosy. The branch must be in a publishable state, i.e. not have errors, for the data to be applied successfully, which can be tested by republishing the branch node within Umbraco.

Request Information

URI Parameters

None.

Body Parameters

To add or update

Collection of BranchContent
NameDescriptionTypeAdditional information
BranchId

Branch ID.

string

Required

BrandCode

Brand code of the branch, e.g. "HRT".

string

Required

OpeningHours

Opening hours html block as string

string

Required

Request Formats

application/json, text/json

Sample:
[
  {
    "BranchId": "sample string 1",
    "BrandCode": "sample string 2",
    "OpeningHours": "sample string 3"
  },
  {
    "BranchId": "sample string 1",
    "BrandCode": "sample string 2",
    "OpeningHours": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfBranchContent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Spicerhaart.Library.Models">
  <BranchContent>
    <BranchId>sample string 1</BranchId>
    <BrandCode>sample string 2</BrandCode>
    <OpeningHours>sample string 3</OpeningHours>
  </BranchContent>
  <BranchContent>
    <BranchId>sample string 1</BranchId>
    <BrandCode>sample string 2</BrandCode>
    <OpeningHours>sample string 3</OpeningHours>
  </BranchContent>
</ArrayOfBranchContent>

Response Information

Resource Description

Success

HttpResponseMessage
NameDescriptionTypeAdditional information
Content

HttpContent

None.

Headers

Collection of Object

None.

IsSuccessStatusCode

boolean

None.

ReasonPhrase

string

None.

RequestMessage

HttpRequestMessage

None.

StatusCode

HttpStatusCode

None.

Version

Version

None.