PUT api/Admin/Schedules
Updates a schedule
Request Information
URI Parameters
None.
Body Parameters
UpdateScheduleRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Schedule Id. |
integer |
Required |
| ChangedBy |
Changed by. |
string |
Required Max length: 255 |
| 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:
{
"Id": 1,
"ChangedBy": "sample string 3",
"Name": "sample string 4",
"StartDate": "2025-12-20",
"EndDate": "2025-12-20",
"ExternalOccupancyRateFactor": 1.0
}
application/xml, text/xml
Sample:
<UpdateScheduleRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.Calendar.Service.DTO"> <EndDate>2025-12-20T18:53:15.9332668+00:00</EndDate> <ExternalOccupancyRateFactor>1</ExternalOccupancyRateFactor> <Id>0</Id> <Name>sample string 4</Name> <StartDate>2025-12-20T18:53:15.9332668+00:00</StartDate> <ChangedBy>sample string 3</ChangedBy> <Id>1</Id> </UpdateScheduleRequest>
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>