PUT api/Account/UpdateSubAccountBusinessHours

Request Information

URI Parameters

None.

Body Parameters

SubAccountBusinessHoursUpdateRequestViewModel
NameDescriptionTypeAdditional information
HoursSummary

Collection of HoursSummaryViewModel

None.

ParentAccountId

string

Required

SubAccountId

string

Required

UserId

string

Required

Request Formats

application/json, text/json

Sample:
{
  "HoursSummary": [
    {
      "IsByAppointmentOnly": true,
      "DayOfWeek": "Sunday",
      "OpeningTimeDetail": {
        "Hour": 1,
        "Minutes": 2,
        "IsAm": true
      },
      "ClosingTimeDetail": {
        "Hour": 1,
        "Minutes": 2,
        "IsAm": true
      }
    },
    {
      "IsByAppointmentOnly": true,
      "DayOfWeek": "Sunday",
      "OpeningTimeDetail": {
        "Hour": 1,
        "Minutes": 2,
        "IsAm": true
      },
      "ClosingTimeDetail": {
        "Hour": 1,
        "Minutes": 2,
        "IsAm": true
      }
    }
  ],
  "ParentAccountId": "sample string 1",
  "SubAccountId": "sample string 2",
  "UserId": "sample string 3"
}

application/xml, text/xml

Sample:
<SubAccountBusinessHoursUpdateRequestViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.AccountsAndSettings">
  <ParentAccountId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 1</ParentAccountId>
  <SubAccountId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 2</SubAccountId>
  <UserId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 3</UserId>
  <HoursSummary xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">
    <d2p1:HoursSummaryViewModel>
      <d2p1:ClosingTimeDetail>
        <d2p1:Hour>1</d2p1:Hour>
        <d2p1:IsAm>true</d2p1:IsAm>
        <d2p1:Minutes>2</d2p1:Minutes>
      </d2p1:ClosingTimeDetail>
      <d2p1:DayOfWeek>Sunday</d2p1:DayOfWeek>
      <d2p1:IsByAppointmentOnly>true</d2p1:IsByAppointmentOnly>
      <d2p1:OpeningTimeDetail>
        <d2p1:Hour>1</d2p1:Hour>
        <d2p1:IsAm>true</d2p1:IsAm>
        <d2p1:Minutes>2</d2p1:Minutes>
      </d2p1:OpeningTimeDetail>
    </d2p1:HoursSummaryViewModel>
    <d2p1:HoursSummaryViewModel>
      <d2p1:ClosingTimeDetail>
        <d2p1:Hour>1</d2p1:Hour>
        <d2p1:IsAm>true</d2p1:IsAm>
        <d2p1:Minutes>2</d2p1:Minutes>
      </d2p1:ClosingTimeDetail>
      <d2p1:DayOfWeek>Sunday</d2p1:DayOfWeek>
      <d2p1:IsByAppointmentOnly>true</d2p1:IsByAppointmentOnly>
      <d2p1:OpeningTimeDetail>
        <d2p1:Hour>1</d2p1:Hour>
        <d2p1:IsAm>true</d2p1:IsAm>
        <d2p1:Minutes>2</d2p1:Minutes>
      </d2p1:OpeningTimeDetail>
    </d2p1:HoursSummaryViewModel>
  </HoursSummary>
</SubAccountBusinessHoursUpdateRequestViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.