I am new to making API calls through Alteryx. I am trying to make an POST request but keep getting bad request every time. I have attached the configurations of the POST request in the download tool using the screenshots attached. The POST request has payload parameters that are required and I have added them as a JSON in the query string body of the Payload tab. I have added API auth token in the header. Is there anything wrong that I am doing?
This the template of the json:
{
"report":
"abc_report",
"parameters": {
"date_range": {
"start":
"2022-01-01",
"end":
"2022-01-31"
}
}
}
A lot of this will be dependent on your API documentation. Have you gotten this working in Postman or another platform?
The same request works in POSTMAN. I believe Alteryx is not recognizing the parameters send through the string body. It tells me that the fields are missing.
do you have content_type set in your download tool? If this works in postman see the curl statement that postman uses vs the one you are sending with Alteryx.
You aren't really providing much in terms of error messages for us to troubleshoot.
I believe the curl statement is not the issue. Alteryx is not able to recognize the body I am sending. I have already shared the sample of json body
This is the error message:
{
"error": {
"report": [
"This field is required."
],
"parameters": [
"This field is required."
]
},
"params": {}
}