# 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. ## Servers - http://localhost:5601: http://localhost:5601 () ## Authentication methods - Basic auth ## Parameters ### Body: application/json (object) Array of `migration_id`s to finalize - **migration_ids** (array[string]) Array of `migration_id`s to finalize. ## Responses ### 200 Successful response #### Body: application/json (array[object]) - **completed** (boolean) - **destinationIndex** (string) - **error** (object) - **id** (string) - **sourceIndex** (string) - **status** (string) - **updated** (string(date-time)) - **version** (string) ### 400 Invalid input data response #### Body: application/json (object) - **error** (string) - **message** (string) - **statusCode** (integer) ### 401 Unsuccessful authentication response #### Body: application/json (object) - **error** (string) - **message** (string) - **statusCode** (integer) ### 500 Internal server error response #### Body: application/json (object) - **message** (string) - **status_code** (integer) [Powered by Bump.sh](https://bump.sh)