So I am trying to use the following endpoint /api/card/:card-id/query/:export-format
.
In the post request I have sent the following body
{
"parameters": [
{
"type": "date/single",
"target": ["variable", ["template-tag", "order_active_from_start"]],
"value":"2020-06-11"
},
{
"type": "date/single",
"target": ["variable", ["template-tag", "order_active_from_end"]],
"value":"2020-06-11"
}]
}
It returns the csv, however it ignores the parameters that I have set in the post request body. I have also tried to put a “parameters” query paramater with the above value, like so
/api/card/9726/query/csv?parameters=[{"type":"date/single","target":["variable",["template-tag","order_active_from_start"]],"value":"2020-06-11"},{"type":"date/single","target":["variable",["template-tag","order_active_from_end"]],"value":"2020-06-11"}]
This again returns a csv, but ignores the parameters. Am I using this endpoint correctly? What am I missing