---
title: "Get all On Duty Requests"
method: GET
path: "/time/od"
tags: ["OnDuty"]
---

# Get all On Duty Requests

`GET /time/od`

Get all On Duty requests in the organization between `from` and `to` date. If both `from` and `to` are not specified, last 30 days records are returned. `from` date should be before `to` date. The difference between `from` and `to` date cannot be more than **90** days.

## Query parameters

- `lastModified` string, date-time
- `employeeIds` string
- `from` string, date-time
- `to` string, date-time
- `status` string
- `pageNumber` integer
- `pageSize` integer

## Response `200`

OK

- OnDutyRequestResponseDtoPagedResponse — class represents paged response.
  - `succeeded` boolean — Gets or sets a value indicating whether this Keka.API.Web.Core.Response`1 is succeeded.
  - `message` string, nullable — Gets or sets the message.
  - `errors` string[], nullable — Gets or sets the errors.
  - `data` KekaAPIModelAttendanceOnDutyRequestResponseDto[], nullable — Gets or sets the data.
    - `id` string, nullable
    - `employeeIdentifier` string, nullable
    - `employeeNumber` string, nullable
    - `employeeName` string, nullable
    - `fromDate` string, date-time
    - `toDate` string, date-time
    - `fromTime` string, date-span, nullable
    - `toTime` string, date-span, nullable
    - `fromSession` 0 | 1 | 2 | 3 | 4 | 5 | 6
    - `toSession` 0 | 1 | 2 | 3 | 4 | 5 | 6
    - `requestedOn` string, date-time, nullable
    - `requestedBy` KekaAPIModelAttendanceEmployeeBasicInfoDto
      - `employeeId` string, nullable
      - `employeeNumber` string, nullable
      - `displayName` string, nullable
    - `note` string, nullable
    - `reasonForRejectionOrCancellation` string, nullable
    - `status` 1 | 2 | 3 | 4 | 5
    - `approvers` KekaAPIModelAttendanceApproverActionDto[], nullable
      - `employeeId` string, nullable
      - `employeeNumber` string, nullable
      - `displayName` string, nullable
      - `actionedOn` string, date-time, nullable
      - `status` string, nullable
    - `nextApprovers` KekaAPIModelAttendanceEmployeeBasicInfoDto[], nullable
      - `employeeId` string, nullable
      - `employeeNumber` string, nullable
      - `displayName` string, nullable
    - `comments` KekaAPIModelAttendanceRequestCommentDto[], nullable
      - `employeeId` string, nullable
      - `employeeDisplayName` string, nullable
      - `comment` string, nullable
      - `timestamp` string, date-time
    - `lastModified` string, date-time, nullable
  - `pageNumber` integer — Gets or sets the page number.
  - `pageSize` integer — Gets or sets the size of the page.
  - `firstPage` string, uri, nullable — Gets or sets the first page.
  - `lastPage` string, uri, nullable — Gets or sets the last page.
  - `totalPages` integer — Gets or sets the total pages.
  - `totalRecords` integer — Gets or sets the total records.
  - `nextPage` string, uri, nullable — Gets or sets the next page.
  - `previousPage` string, uri, nullable — Gets or sets the previous page.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/keka/apis/keka-api.md) · [All operations](https://skmtc.net/keka/apis/keka-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/keka/keka-api/revisions/907ea395c885/schema)
