Duplicate an exception list
Duplicate an existing exception list.
Query parameters
- 
    
  
The exception list's human readable string identifier,
endpoint_list.Minimum length is
1. - 
    
  
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 are
agnosticorsingle. - 
    
  
Determines whether to include expired exceptions in the duplicated list. Expiration date defined by
expire_time.Values are
trueorfalse. Default value istrue. 
        POST
    /api/exception_lists/_duplicate
  
  curl \
 --request POST 'https://<KIBANA_URL>/api/exception_lists/_duplicate?list_id=simple_list&namespace_type=agnostic&include_expired_exceptions=true' \
 --header "Authorization: $API_KEY"
    
        Response examples (200)
  
  {
  "id": "b2f4a715-6ab1-444c-8b1e-3fa1b1049429",
  "name": "Sample Detection Exception List [Duplicate]",
  "tags": [
    "malware"
  ],
  "type": "detection",
  "list_id": "d6390d60-bce3-4a48-9002-52db600f329c",
  "version": 1,
  "_version": "WzExNDY1LDFd",
  "os_types": [],
  "immutable": false,
  "created_at": "2025-01-09T16:19:50.280Z",
  "created_by": "elastic",
  "updated_at": "2025-01-09T16:19:50.280Z",
  "updated_by": "elastic",
  "description": "This is a sample detection type exception",
  "namespace_type": "single",
  "tie_breaker_id": "6fa670bd-666d-4c9c-9f1e-d1dbc516e985"
}
        Response examples (400)
  
  {
  "error": "Bad Request",
  "message": "[request query]: namespace_type: Invalid enum value. Expected 'agnostic' | 'single', received 'foo'",
  "statusCode": 400
}
        Response examples (401)
  
  {
  "error": "Unauthorized",
  "message": "[security_exception\\n\\tRoot causes:\\n\\t\\tsecurity_exception: unable to authenticate user [elastic] for REST request [/_security/_authenticate]]: unable to authenticate user [elastic] for REST request [/_security/_authenticate]",
  "statusCode": 401
}
        Response examples (403)
  
  {
  "error": "Forbidden",
  "message": "API [POST /api/exception_lists/_duplicate] is unauthorized for user, this action is granted by the Kibana privileges [lists-all]",
  "statusCode": 403
}
        Response examples (404)
  
  {
  "message\"": "exception list id: \"foo\" does not exist",
  "status_code\"": 404
}
        Response examples (500)
  
  {
  "message": "Internal Server Error",
  "status_code": 500
}