[[cancel-reindex]]
=== Cancel reindex API
++++
Cancel reindex
++++
experimental["The underlying Upgrade Assistant concepts are stable, but the APIs for managing Upgrade Assistant are experimental."]
Cancel reindexes that are waiting for the Elasticsearch reindex task to complete. For example, `lastCompletedStep` set to `40`.
[[cancel-reindex-request]]
==== Request
`POST :/api/upgrade_assistant/reindex/myIndex/cancel`
[[cancel-reindex-response-codes]]
==== Response codes
`200`::
Indicates a successful call.
[[cancel-reindex-status-example]]
==== Example
The API returns the following:
[source,sh]
--------------------------------------------------
{
"acknowledged": true
}
--------------------------------------------------