Hi,
Has anyone successfully used the download tool using the DELETE method?
When i use this method i keep getting errors while POST/GET works with no issues.
Looking at the logs it looks like the payload was being parsed as a header. It must be sent as part of the body and in HTTP there must be a blank line between the URL+headers and the body
DELETE "URL"
Accept: application/json
Content-type: application/json
Authorization: Bearer API-ACCESS-TOKEN
{
"test": 1234
}
Is this a know bug with the download tool?
Hi @Danliel,
In the download tool, DELETE is a HTTP method, and therefore, does not mean 'delete' in an FTP/SFTP Context. I just wanted to provide this context.
Are you able to add a X-HTTP-method (may vary - I would check the API documentation of how to configure this) as the name in the headers tab and DELETE value within the headers tab of the download tool? I would then configure the payload tab to use a POST method.
Hope this helps, if it does please like this post and if it helps resolve your problem, mark it as a solution. If you have any other questions, please let us know.
Hi PanPP,
I don't think the API supports the X-HTTP-method (Nothing in the documentation but i will enquire), in any case the DELETE method should work without the need to Method-Override.
I can use the DELETE method in other applications (Node Red) so i know the API works, but i don't think Alteryx is configuring output to the desired format or i'm doing something wrong.
This was the response from the API provider "Looking at the logs it looks like the payload {"testId":183711} was being parsed as a header"
testid is configured in the payload but its being parsed in the header?