API to remove refresh schedule in bulk

Hello People,
I’m trying to remove refresh from 500 queries. I’m making the following POST request to redash API but I’m getting the error “message”: “The browser (or proxy) sent a request that this server could not understand.”

POST REQUEST
var myHeaders = new Headers();
myHeaders.append(“Accept”, " application/json, text/plain, /");
myHeaders.append(“Content-Type”, " application/json;charset=UTF-8");

var requestOptions = {
  method: 'POST',
  headers: myHeaders,
  redirect: 'follow'
};

fetch("https://redash.toppr.com/api/queries/2085?api_key=<>&schedule=null&id=2085", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

I would greatly appreciate any pointers to work this out.

You can’t update the schedules using query string parameters that way. Whatever data you change must be included in your request’s JSON body.