405 ClientError: Method not allowed for url

for the below command:
response = s.post(‘{}/api/queries/{}/results’.format(redash_url, query_id), json=body)
i get the response status as 405.
with the same url, api key, & query id works perfectly fine for /api/queries/ etc
Also if i copy the entire url https://<redash_url>/api/queries/2938/results and put it in chrome, t will throw “it seems the page you are looking for cannot be found” but if me https://<redash_url>/api/queries/2938 is opened in chrome it works fine.

What can be done here?