Unable to use automatic slicing in reindex API

We are re-indexing data in ES cluster using _reindex API ES version 7.17.

We want to leverage automated slicing to finish the process sooner as we have really large index with doc count ~150 million.
We were following this document Reindex API | Elasticsearch Guide [7.17] | Elastic, however while using the mentioned url, we are getting error: refresh is not recognized parameter.

Please suggest if we are missing anything, just wanted to inform that we are using curl request.

can someone please respond or help here?

Please show the full reindexing request as well as the full response.