3 Replies Latest reply on Feb 9, 2018 12:44 AM by Elina Vihriälä

    Getting Error with Get Extract Refresh Tasks from REST API

    Jasson Giannini

      I am trying to trigger an extract using cygwin curl. code currently looks like this:


      curl "<server info>/api/2.7/sites/<site-id>/tasks/extractRefreshes/<task-id>/runNow" -X POST -H 'X-Tableau-Auth:<auth token>'


      I get this error:


      <error code="400000"><summary>Bad Request</summary><detail>Payload is either malformed XML/JSON or incomplete</detail></error></tsResponse>


      I am sure the site-id and task-id are correct, as they work properly for other commands. The auth token I gather right before running the code so that should be correct too.