---
type: api
title: Duplicate an exception list
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/v8/operation/operation-duplicateexceptionlist
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/v8/operation/operation-duplicateexceptionlist
products:
  - Kibana
---

# Duplicate an exception list

- Server: `https://{kibana_url}`

## Paths

- `POST` `/api/exception_lists/_duplicate`
- `POST` `/s/{space_id}/api/exception_lists/_duplicate`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/kibana/v8/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/kibana/v8/authentication#basicauth)

## Description

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Duplicate an existing exception list.

## Query String Parameters

- `list_id` (string · min: 1)
  Exception list's human identifier
- `namespace_type` (enum)
  Values: `agnostic`, `single`
- `include_expired_exceptions` (enum  · default: true)
  Determines whether to include expired exceptions in the exported list
  Values: `true`, `false`

## Responses

#### `200`

Successful response

`application/json`

- `_version` (string)
- `created_at` (string)
- `created_by` (string)
- `description` (string)
- `id` (string · min: 1)
  A string that does not contain only whitespace characters
- `immutable` (boolean)
- `list_id` (string · min: 1)
  A string that does not contain only whitespace characters
- `meta` (object)
- `name` (string)
- `namespace_type` (enum)
  Determines whether the exception container is available in all Kibana spaces or just the space
in which it is created, where:

- `single`: Only available in the Kibana space in which it is created.
- `agnostic`: Available in all Kibana spaces.
  Values: `agnostic`, `single`
- `os_types` ([] object)
  Values: `linux`, `macos`, `windows`
- `tags` ([] object)
- `tie_breaker_id` (string)
- `type` (enum)
  Values: `detection`, `rule_default`, `endpoint`, `endpoint_trusted_apps`, `endpoint_events`, `endpoint_host_isolation_exceptions`, `endpoint_blocklists`
- `updated_at` (string)
- `updated_by` (string)
- `version` (integer · min: 1)
#### `400`

Invalid input data response

`application/json`

One of:
- **PlatformErrorResponse**
  - `error` (string)
  - `message` (string)
  - `statusCode` (integer)
- **SiemErrorResponse**
  - `message` (string)
  - `status_code` (integer)
#### `401`

Unsuccessful authentication response

`application/json`

- `error` (string)
- `message` (string)
- `statusCode` (integer)
#### `403`

Not enough privileges response

`application/json`

- `error` (string)
- `message` (string)
- `statusCode` (integer)
#### `405`

Exception list to duplicate not found response

`application/json`

- `message` (string)
- `status_code` (integer)
#### `500`

Internal server error response

`application/json`

- `message` (string)
- `status_code` (integer)
## Code Examples

#### Console

```console
POST /api/exception_lists/_duplicate?list_id={list_id}&namespace_type={namespace_type}&include_expired_exceptions={include_expired_exceptions}
```

#### curl

```curl
curl -X POST "https://{kibana_url}/api/exception_lists/_duplicate?list_id={list_id}&namespace_type={namespace_type}&include_expired_exceptions={include_expired_exceptions}"
```

