---
title: "Remove multiple external leave types"
method: DELETE
path: "/external-leave-types"
tags: ["external-leave-types"]
---

# Remove multiple external leave types

`DELETE /external-leave-types`

## Request

- Base URL: `https://api.hoorayhr.io`
- URL: `https://api.hoorayhr.io/external-leave-types`
- Auth: API key in header `authorization`

Removes multiple resources queried by given filters.

## Query parameters

- `filter` ExternalLeaveTypes
  - `id` integer: ID of the external leave type
  - `name` string, required: Name of the external leave type, unique per company
  - `color` 'DARK_BLUE' | 'LIGHT_BLUE' | 'GREEN' | 'ORANGE' | 'YELLOW' | 'RED': Color of the external leave type
  - `icon` 'PALMTREE' | 'LEAVE-GENERAL' | 'BACKPACK' | 'SUITCASE' | 'CLOCK' | 'PRAM' | 'PLANE' | 'CAR' | 'BIKE' | 'EDUCATION' | 'CERTIFICATE' | 'BOOK' | 'MISC' | 'REVIEW' | 'AGREEMENT' | 'ADDENDUM' | 'MUTATION' | 'USER' | 'TEAM' | 'PRESENT' | 'FLAG' | 'GOALS': Icon of the external leave type
  - `leaveInDays` integer: Tiny-int indicating if the budgets are defined in days instead of minutes
  - `clientId` string: Client ID of OAuth client that created the external leave type
  - `createdAt` string, date-time: Creation date of the external leave type
  - `updatedAt` string, date-time: Last updated date of the external leave type

## Response `200`

success

- ExternalLeaveTypes[]
  - `id` integer: ID of the external leave type
  - `name` string, required: Name of the external leave type, unique per company
  - `color` 'DARK_BLUE' | 'LIGHT_BLUE' | 'GREEN' | 'ORANGE' | 'YELLOW' | 'RED': Color of the external leave type
  - `icon` 'PALMTREE' | 'LEAVE-GENERAL' | 'BACKPACK' | 'SUITCASE' | 'CLOCK' | 'PRAM' | 'PLANE' | 'CAR' | 'BIKE' | 'EDUCATION' | 'CERTIFICATE' | 'BOOK' | 'MISC' | 'REVIEW' | 'AGREEMENT' | 'ADDENDUM' | 'MUTATION' | 'USER' | 'TEAM' | 'PRESENT' | 'FLAG' | 'GOALS': Icon of the external leave type
  - `leaveInDays` integer: Tiny-int indicating if the budgets are defined in days instead of minutes
  - `clientId` string: Client ID of OAuth client that created the external leave type
  - `createdAt` string, date-time: Creation date of the external leave type
  - `updatedAt` string, date-time: Last updated date of the external leave type

## Other responses

- `401`: not authenticated
- `500`: general error

---

[API](https://skmtc.dev/hoorayhr/apis/hoorayhr-api-documentation.md) · [All operations](https://skmtc.dev/hoorayhr/apis/hoorayhr-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/hoorayhr/apis/hoorayhr-api-documentation/revisions/3adcd47cd827?raw)
