POST api/Configuration/SetShopHolidays

Request Information

URI Parameters

None.

Body Parameters

ShopHolidaysSetRequest
NameDescriptionTypeAdditional information
UserId

integer

None.

ShopUserId

integer

None.

SubdivisionCode

string

None.

CustomHolidays

Collection of CustomHolidayModel

None.

Overrides

Collection of HolidayOverrideModel

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "ShopUserId": 2,
  "SubdivisionCode": "sample string 3",
  "CustomHolidays": [
    {
      "Name": "sample string 1",
      "Month": 2,
      "Day": 3,
      "Year": 1
    },
    {
      "Name": "sample string 1",
      "Month": 2,
      "Day": 3,
      "Year": 1
    }
  ],
  "Overrides": [
    {
      "HolidayKey": "sample string 1",
      "IsEnabled": true
    },
    {
      "HolidayKey": "sample string 1",
      "IsEnabled": true
    }
  ]
}

text/html

Sample:
{"UserId":1,"ShopUserId":2,"SubdivisionCode":"sample string 3","CustomHolidays":[{"Name":"sample string 1","Month":2,"Day":3,"Year":1},{"Name":"sample string 1","Month":2,"Day":3,"Year":1}],"Overrides":[{"HolidayKey":"sample string 1","IsEnabled":true},{"HolidayKey":"sample string 1","IsEnabled":true}]}

application/xml, text/xml

Sample:
<ShopHolidaysSetRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Msa.Online.OrderbobApi.Models.Configuration">
  <CustomHolidays>
    <CustomHolidayModel>
      <Day>3</Day>
      <Month>2</Month>
      <Name>sample string 1</Name>
      <Year>1</Year>
    </CustomHolidayModel>
    <CustomHolidayModel>
      <Day>3</Day>
      <Month>2</Month>
      <Name>sample string 1</Name>
      <Year>1</Year>
    </CustomHolidayModel>
  </CustomHolidays>
  <Overrides>
    <HolidayOverrideModel>
      <HolidayKey>sample string 1</HolidayKey>
      <IsEnabled>true</IsEnabled>
    </HolidayOverrideModel>
    <HolidayOverrideModel>
      <HolidayKey>sample string 1</HolidayKey>
      <IsEnabled>true</IsEnabled>
    </HolidayOverrideModel>
  </Overrides>
  <ShopUserId>2</ShopUserId>
  <SubdivisionCode>sample string 3</SubdivisionCode>
  <UserId>1</UserId>
</ShopHolidaysSetRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.