GetIntervals
[POST] .../v1/workschedule/getintervals
Returns work schedule intervals. Read the weekly or shift intervals configured for one schedule before editing or validating attendance behavior. The response returns WorkScheduleInterval rows for the requested schedule_id with day_of_week, start_minute, end_minute, cross_day and last_update; the request body is required, schedule_id must be positive and the OpenAPI filters metadata exposes the supported schedule_id selector. The caller must have work schedule select permission 689. Missing body, invalid schedule_id, denied permission, missing schedule data and storage errors are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| filters | Array of Filter | Optional | Optional filters by fields available for this API method. |
Filterable Fields
| Field | Type | Description |
|---|---|---|
| schedule_id | int | Schedule ID. |
Request Example
{
"filters": [
{
"Field": "schedule_id",
"Operator": "Equal",
"Value": "14"
}
]
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Array of WorkScheduleInterval | Result array. |
Response Example
{
"ok": true,
"result": [
{
"schedule_id": 14,
"day_of_week": 1,
"start_minute": 540,
"end_minute": 1080,
"cross_day": false,
"last_update": 1772527200
}
]
}