POST Api/Resource/Request/DayAvailability

Create an availability request

Request Information

URI Parameters

None.

Body Parameters

DayAvailabilityModel
NameDescriptionTypeAdditional information
RequestId

integer

Required

StartDate

date

Required

EndDate

date

None.

RecurrenceModel

RecurrenceModel

None.

Comment

string

None.

DayAvailabilityId

integer

None.

AvailabilityBlocks

Collection of ScheduledAvailabilityBlockModel

None.

ScheduledAvailabilities

Collection of ScheduledStandardAvailabilityModel

None.

RequestChannel

RequestChannel

None.

Request Formats

application/json, text/json

Sample:
{
  "RequestId": 1,
  "StartDate": "2024-12-22T08:36:20.4424301+01:00",
  "EndDate": "2024-12-22T08:36:20.4424301+01:00",
  "RecurrenceModel": {
    "EndDate": "2024-12-22T08:36:20.4424301+01:00",
    "Amount": 2,
    "Monday": true,
    "Tuesday": true,
    "Wednesday": true,
    "Thursday": true,
    "Friday": true,
    "Saturday": true,
    "Sunday": true,
    "Repeat": 10,
    "RepeatSelected": true,
    "RecurrenceType": 12
  },
  "Comment": "sample string 4",
  "DayAvailabilityId": 5,
  "AvailabilityBlocks": [
    {
      "AvailabilityId": 1,
      "beginTime": "sample string 2",
      "endTime": "sample string 3"
    },
    {
      "AvailabilityId": 1,
      "beginTime": "sample string 2",
      "endTime": "sample string 3"
    }
  ],
  "ScheduledAvailabilities": [
    {
      "StandardAvailabilityId": 1,
      "beginTime": "sample string 2",
      "endTime": "sample string 3"
    },
    {
      "StandardAvailabilityId": 1,
      "beginTime": "sample string 2",
      "endTime": "sample string 3"
    }
  ],
  "RequestChannel": 1
}

application/xml, text/xml

Sample:
<DayAvailabilityModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RostarCASWebAPI.Models">
  <AvailabilityBlocks>
    <ScheduledAvailabilityBlockModel>
      <AvailabilityId>1</AvailabilityId>
      <beginTime>sample string 2</beginTime>
      <endTime>sample string 3</endTime>
    </ScheduledAvailabilityBlockModel>
    <ScheduledAvailabilityBlockModel>
      <AvailabilityId>1</AvailabilityId>
      <beginTime>sample string 2</beginTime>
      <endTime>sample string 3</endTime>
    </ScheduledAvailabilityBlockModel>
  </AvailabilityBlocks>
  <Comment>sample string 4</Comment>
  <DayAvailabilityId>5</DayAvailabilityId>
  <EndDate>2024-12-22T08:36:20.4424301+01:00</EndDate>
  <RecurrenceModel xmlns:d2p1="http://schemas.datacontract.org/2004/07/RostarCASWebAPI.Models.Requests">
    <d2p1:Amount>2</d2p1:Amount>
    <d2p1:EndDate>2024-12-22T08:36:20.4424301+01:00</d2p1:EndDate>
    <d2p1:Friday>true</d2p1:Friday>
    <d2p1:Monday>true</d2p1:Monday>
    <d2p1:RecurrenceType>12</d2p1:RecurrenceType>
    <d2p1:Repeat>10</d2p1:Repeat>
    <d2p1:RepeatSelected>true</d2p1:RepeatSelected>
    <d2p1:Saturday>true</d2p1:Saturday>
    <d2p1:Sunday>true</d2p1:Sunday>
    <d2p1:Thursday>true</d2p1:Thursday>
    <d2p1:Tuesday>true</d2p1:Tuesday>
    <d2p1:Wednesday>true</d2p1:Wednesday>
  </RecurrenceModel>
  <RequestChannel>SMS</RequestChannel>
  <RequestId>1</RequestId>
  <ScheduledAvailabilities>
    <ScheduledStandardAvailabilityModel>
      <StandardAvailabilityId>1</StandardAvailabilityId>
      <beginTime>sample string 2</beginTime>
      <endTime>sample string 3</endTime>
    </ScheduledStandardAvailabilityModel>
    <ScheduledStandardAvailabilityModel>
      <StandardAvailabilityId>1</StandardAvailabilityId>
      <beginTime>sample string 2</beginTime>
      <endTime>sample string 3</endTime>
    </ScheduledStandardAvailabilityModel>
  </ScheduledAvailabilities>
  <StartDate>2024-12-22T08:36:20.4424301+01:00</StartDate>
</DayAvailabilityModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.