Finalize detection alert migrations

POST /api/detection_engine/signals/finalize_migration

Finalize successful migrations of detection alerts. This replaces the original index's alias with the successfully migrated index's alias. The endpoint is idempotent; therefore, it can safely be used to poll a given migration and, upon completion, finalize it.

application/json; Elastic-Api-Version=2023-10-31

Body Required

Array of migration_ids to finalize

Responses

POST /api/detection_engine/signals/finalize_migration
curl \
 -X POST https://localhost:5601/api/detection_engine/signals/finalize_migration \
 -H "Content-Type: application/json; Elastic-Api-Version=2023-10-31"
Request examples
{
  "migration_ids": [
    "string"
  ]
}
Response examples (200)
[
  {
    "completed": true,
    "destinationIndex": "string",
    "error": {
      "message": "string",
      "status_code": 42
    },
    "id": "string",
    "sourceIndex": "string",
    "status": "success",
    "updated": "2024-05-04T09:42:00+00:00",
    "version": "string"
  }
]
Response examples (400)
{
  "error": "string",
  "message": "string",
  "statusCode": 42
}
{
  "message": "string",
  "status_code": 42
}
Response examples (401)
{
  "error": "string",
  "message": "string",
  "statusCode": 42
}
Response examples (500)
{
  "message": "string",
  "status_code": 42
}