Queries with parameters, unable to use API call


I have a query with a parameter (test).
I try to use the API, but I have a error message :


{"message": "No cached result found for this query. You have requested this URI [/api/queries/6/results.csv] but did you mean /api/queries/<query_id>/results or /api/query_results or /api/queries/<query_id>/refresh ?"}

Maybe I’m using the API not correctly?
I use the the self-hosted version (v7 on DigitalOcean).

(If I remove the parameters, it’s work fine!)


Queries with parameters take a couple steps to fetch from the API. Here’s a link to the last time this came up:

Thanks for your response.
I’m not sur this solution work for me.

I use the API with the IMPORTDATA function of Google Sheets. So i can’t use POST but only GET.

Maybe it’s not possible only with GET request ?