Queries the information about a scheduling policy.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Id | long | Yes | The ID of the scheduling policy. | 1234 |
StartTime | string | No | The date from which the shift starts. Format: | 2022-10-01 |
EndTime | string | No | The date on which the shift ends. Format: | 2022-10-30 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "21E85B16-75A6-429A-9F65-8AAC9A54****",
"Data": {
"Id": 1234,
"Name": "Scheduling policy test\n",
"Description": "Test\n",
"AlertRobotId": 0,
"ScheduleLayers": [
{
"ContactIds": [
0
],
"StartTime": "2022-10-01\n",
"ShiftLength": 8,
"RotationType": "DAY",
"Restrictions": [
{
"RestrictionType": "daily_restriction",
"StartTimeOfDay": "09:00",
"EndTimeOfDay": "18:00"
}
]
}
],
"RenderedLayerEntries": [
[
{
"Start": "2022-10-01",
"End": "2022-10-30",
"SimpleContact": {
"Id": 123,
"Name": "Employee 1\n"
}
}
]
],
"RenderedSubstitudeEntries": [
{
"Start": "2022-10-01",
"End": "2022-10-30",
"SimpleContact": {
"Id": 234,
"Name": "Employee 2\n"
}
}
],
"RenderedFinnalEntries": [
{
"Start": "2022-10-01",
"End": "2022-10-30",
"SimpleContact": {
"Id": 123,
"Name": "Employee 1\n"
}
}
]
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2022-07-26 | Add Operation | see changesets |