Dev Space

Customize & extend the power of Alteryx. SDKs, APIs, custom tools, and more!
Andy Uttley, Alteryx ACE, makes music with Alteryx | Math + Music

Refresh published Tableau data source extract with REST API

Highlighted
5 - Atom

Hi,

I'm trying to create automated process for refreshing published Tableau data sources using REST API. Unfortunately, I'm failing at triggering that action.

I have the following configuration:

GGozdecki_3-1590061129666.png

GGozdecki_4-1590061167811.png

GGozdecki_5-1590061200943.png

GGozdecki_6-1590061232921.png


After run in such configuration, I receive this message: {"error":{"summary":"Bad Request","detail":"Payload is either malformed or incomplete","code":"400000"}}. I tried many different configurations, but it didn't help. Although this error indicate that the request body is incorrect, in the Tableau documentation it is written that it need no attributes in the body.

GGozdecki_1-1590061061390.png


Any idea what might be incorrect?

 

Thank you in advance!



Highlighted
5 - Atom

Friend of mine helped me to find the error. Instead of having accept header, we must include Content-Type with value of 'application/xml'.

Case closed.