POST api/Admin/Schedules
Creates an schedule
Request Information
URI Parameters
None.
Body Parameters
CreateScheduleRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| CalendarId |
Calendar Id |
integer |
None. |
| CreatedBy |
Created by |
string |
Required Max length: 255 |
| Id | integer |
None. |
|
| Name |
Name of the schedule. |
string |
Required Max length: 255 |
| StartDate |
Start date. |
date |
Required |
| EndDate |
End date. |
date |
None. |
| ExternalOccupancyRateFactor |
External booking interval in minutes. |
decimal number |
Range: inclusive between 0 and 1 |
Remarks
None.
Example
None.
Request Formats
application/json, text/json
Sample:
{
"CalendarId": 1,
"CreatedBy": "sample string 3",
"Id": 4,
"Name": "sample string 5",
"StartDate": "2025-12-20",
"EndDate": "2025-12-20",
"ExternalOccupancyRateFactor": 1.0
}
application/xml, text/xml
Sample:
<CreateScheduleRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.Calendar.Service.DTO"> <EndDate>2025-12-20T22:06:26.2549627+00:00</EndDate> <ExternalOccupancyRateFactor>1</ExternalOccupancyRateFactor> <Id>4</Id> <Name>sample string 5</Name> <StartDate>2025-12-20T22:06:26.2549627+00:00</StartDate> <CalendarId>1</CalendarId> <CreatedBy>sample string 3</CreatedBy> </CreateScheduleRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>