Set_upgrade_mode?enabled=false failed on 7.17

I am doing an entire cluster restore. After index restore, I am resetting _ml/set_upgrade_mode, but it did not work

sh-5.1$ curl -X POST 'http://instana-es-http:9200/_ml/set_upgrade_mode?enabled=false' -u elastic:$ELASTIC_PASSWORD
{"error":{"root_cause":[{"type":"parse_exception","reason":"request body is required"}],"type":"parse_exception","reason":"request body is required"},"status":400}sh-5.1$
sh-5.1$

I noticed this failure only happens on elasticsearch:7.17.14_v0.3.0. I can reproduce this even when restarted elastic pod.

But I don't reproduce it on version 7.17.15

curl -X POST 'http://instana-es-http:9200/_ml/set_upgrade_mode?enabled=false' -u elastic:$ELASTIC_PASSWORD 
{"acknowledged":true}