GET api/Admin/Schedules/{id}

Gets the schedule with the specified id.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Schedule id.

integer

Required

Body Parameters

None.

Remarks

If the schedule is not found 404 Not found are returned.
If the calendar is deleted 404 Not found are returned.

Example

Gets the schedule with id 1
GET: http://localhost/api/Admin/Schedules/1

Response Information

Resource Description

Returns the schedule with the specified id.

AdminGetScheduleResponse
NameDescriptionTypeAdditional information
Id

Schedule id.

integer

None.

Name

Schedule name.

string

None.

ExternalOccupancyRateFactor

External occupancy rate factor.

decimal number

None.

StartDate

Schedule valid from date.

date

None.

EndDate

Schedule valid to date.

date

None.

CreatedBy

Created by identifier.

string

None.

CreatedDateTime

Created date and time.

date

None.

ChangedBy

Changed by identifier.

string

None.

ChangedDateTime

Changed date and time.

date

None.

DayScheduleIds

List of day schedule ids for the schedule.

Collection of integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "ExternalOccupancyRateFactor": 1.0,
  "StartDate": "2025-12-20",
  "EndDate": "2025-12-20",
  "CreatedBy": "sample string 5",
  "CreatedDateTime": "2025-12-20T18:53:15.3968252+00:00",
  "ChangedBy": "sample string 7",
  "ChangedDateTime": "2025-12-20T18:53:15.3968252+00:00",
  "DayScheduleIds": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<AdminGetScheduleResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.Calendar.Service.DTO">
  <ChangedBy>sample string 7</ChangedBy>
  <ChangedDateTime xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-20T18:53:15.3968252Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </ChangedDateTime>
  <CreatedBy>sample string 5</CreatedBy>
  <CreatedDateTime xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-20T18:53:15.3968252Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDateTime>
  <DayScheduleIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </DayScheduleIds>
  <EndDate>2025-12-20T18:53:15.3968252+00:00</EndDate>
  <ExternalOccupancyRateFactor>1</ExternalOccupancyRateFactor>
  <Id>1</Id>
  <Name>sample string 2</Name>
  <StartDate>2025-12-20T18:53:15.3968252+00:00</StartDate>
</AdminGetScheduleResponse>