POST api/Scheduler/SaveBlockTimeData

Request Information

URI Parameters

None.

Body Parameters

SaveBlockTimeData
NameDescriptionTypeAdditional information
StaffTypeId

integer

None.

LocationIds

string

None.

StartDateTime

date

None.

EndDateTime

date

None.

Comments

string

None.

StaffId

integer

None.

ServiceId

integer

None.

BlockTimeTypeId

integer

None.

BlockTimeId

integer

None.

IsRecurrence

boolean

None.

RecurranceId

integer

None.

Recurrence

RecurrenceData

None.

TimeZoneID

string

None.

EditAll

boolean

None.

ShowTime

integer

None.

Notes

string

None.

BlockTimeSubTypeId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "StaffTypeId": 1,
  "LocationIds": "sample string 1",
  "StartDateTime": "2026-04-17T12:53:12.0517832+00:00",
  "EndDateTime": "2026-04-17T12:53:12.0517832+00:00",
  "Comments": "sample string 2",
  "StaffId": 1,
  "ServiceId": 1,
  "BlockTimeTypeId": 3,
  "BlockTimeId": 4,
  "IsRecurrence": true,
  "RecurranceId": 1,
  "Recurrence": {
    "RecurrenceId": 1,
    "RecurrenceType": "sample string 2",
    "Interval": 3,
    "Start": "2026-04-17T12:53:12.0517832+00:00",
    "WeekDays": [
      1,
      2
    ],
    "EndOn": {
      "EndsOnType": 1,
      "EndOnCount": 1,
      "EndOnUntil": "2026-04-17T12:53:12.0527806+00:00"
    },
    "DayOf": 1
  },
  "TimeZoneID": "sample string 5",
  "EditAll": true,
  "ShowTime": 7,
  "Notes": "sample string 8",
  "BlockTimeSubTypeId": 1
}

application/xml, text/xml

Sample:
<SaveBlockTimeData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CSI.Cx360.WebAPI.Models.Scheduler">
  <BlockTimeId>4</BlockTimeId>
  <BlockTimeSubTypeId>1</BlockTimeSubTypeId>
  <BlockTimeTypeId>3</BlockTimeTypeId>
  <Comments>sample string 2</Comments>
  <EditAll>true</EditAll>
  <EndDateTime>2026-04-17T12:53:12.0517832+00:00</EndDateTime>
  <IsRecurrence>true</IsRecurrence>
  <LocationIds>sample string 1</LocationIds>
  <Notes>sample string 8</Notes>
  <RecurranceId>1</RecurranceId>
  <Recurrence>
    <DayOf>1</DayOf>
    <EndOn>
      <EndOnCount>1</EndOnCount>
      <EndOnUntil>2026-04-17T12:53:12.0527806+00:00</EndOnUntil>
      <EndsOnType>1</EndsOnType>
    </EndOn>
    <Interval>3</Interval>
    <RecurrenceId>1</RecurrenceId>
    <RecurrenceType>sample string 2</RecurrenceType>
    <Start>2026-04-17T12:53:12.0517832+00:00</Start>
    <WeekDays xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </WeekDays>
  </Recurrence>
  <ServiceId>1</ServiceId>
  <ShowTime>7</ShowTime>
  <StaffId>1</StaffId>
  <StaffTypeId>1</StaffTypeId>
  <StartDateTime>2026-04-17T12:53:12.0517832+00:00</StartDateTime>
  <TimeZoneID>sample string 5</TimeZoneID>
</SaveBlockTimeData>

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 'SaveBlockTimeData'.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />