Hi Jasson, you aren't including a request body. The documentation says "You must include a valid request with the POST operation. Currently, the request body can be empty. In the future, you might be able to set options for the task."
I had tried a request body and that did not work either:
curl "<server info>/api/2.7/sites/<site-id>/tasks/extractRefreshes/<task-id>/runNow" -X POST -H 'X-Tableau-Auth:<auth token>' -d @refreshextract.xml
refreshextract.xml looks like this:
On a final note, the documentation example does not have a request body either:
curl "http://MY-SERVER/api/2.7/sites/9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d/tasks/extractRefreshes/9f8e7d6c-5b4a-3f2e-1d0c-9b8a7f6e5d4c/runNow" -X POST -H X-Tableau-Auth:12ab34cd56ef78ab90cd12ef34ab56cd
Hi I had exactly the same problem I have tried with and without request body to refresh extracts. What Tableau version you are using? I try with 10.4. Actually I found that the API reference documentation seems to be erroneous what comes to curl example. Request body is compulsory and also Content-Type needs to be in the header. Found the advice from chain Dev Server Error runNow extract refresh task and got it finally working!