---
title: "Search Out of Office"
method: GET
path: "/business/v2/employees/out-of-office"
tags: ["Out of Office"]
---

# Search Out of Office

`GET /business/v2/employees/out-of-office`

Endpoint to search `out_of_office` using filtering parameters.

## Query parameters

- `delegatorId` string[] — The ID of the person assigning the `out_of_office`.
- `delegateId` string[] — The ID of the person covering for the delegator.
- `fromDate` string — Defines when the out_of_office entry starts. fromDate included. (i.e. greater than or equal to) (Format:`yyyy-MM-dd`).
- `toDate` string — Defines when the out_of_office entry ends, toDate included. (i.e. less than) (Format:`yyyy-MM-ddThh:mm:ssZ`,represents a UTC timezone).
- `status` DelegationStatus[] — The status of `out_of_office`.
- `feature` DelegationFeature[] — The features of `out_of_office`.
- `p` integer — It indicates the specific page to display (the counter starts from zero).
- `s` integer — It indicates the number of items per page.
- `d` 'ASC' | 'DESC' — It indicates how the pages are ordered.
- `props` string[] — It indicates the sorting direction applied to the above parameters. To apply a sorting on multiple parameters, set as many times the `props` parameter in the request.

## Response `200`

The result is an array containing `out_of_office`.

- OutOfOfficeDelegations
  - `total` integer — It represents the total number of available items in the list.
  - `pages` integer — It represents the total number of available pages.
  - `page_size` integer — It represents the number of items per page.
  - `current_page` integer — It indicates the current page (the counter starts from zero).
  - `results_size` integer — It indicates the size of the array results.
  - `results` OutOfOfficeDelegation[]
    - `id` string — A unique identifier for this `out_of_office` entry.
    - `delegator_id` string — The ID of the person assigning the `out_of_office`.
    - `delegate_id` string — The ID of the person covering for the delegator.
    - `from_date` string, date — Defines when the out_of_office entry starts. fromDate included. (i.e. greater than or equal to) (Format:`yyyy-MM-dd`).
    - `to_date` string, date — Defines when the out_of_office entry ends. toDate included. (i.e. less than) (Format:`yyyy-MM-dd`).
    - `features` DelegationFeature[] — The features of `out_of_office`.
    - `status` 'ACTIVE' | 'EXPIRED' | 'SCHEDULED' | 'DELETED'

## Other responses

- `400` — Your request has missing arguments or is malformed.

---

[API](https://skmtc.net/soldo/apis/soldo-business-api-v2-0.md) · [All operations](https://skmtc.net/soldo/apis/soldo-business-api-v2-0/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/soldo/soldo-business-api-v2-0/revisions/7be21448a2b3/schema)
