4 Replies Latest reply on May 30, 2018 12:00 PM by Nivin Mathew

    Unable to run the Update Workbook Now API

    Nivin Mathew

      Hello,

       

      I am trying to run the Update Workbook Now api and I keep getting this error: b'{"error":{"summary":"Bad Request","detail":"Payload is either malformed XML/JSON or incomplete","code":"400000"}}'

       

      Screenshot explanation

      1. I sign in, get a token, site id, and workbook id (all using Tableau example)
      2. I use the Query Workbook API with the example given. I am able to retrieve the information regarding the workbook.
      3. I use the Update Workbook Now API with the example given. I receive the error below.

       

      Update Workbook Now.jpg

       

      Query workbook: curl

      "http://***/api/3.0/sites/12b22097-6bd7-41c4-a6e0-174e09705a6c/workbooks/f443eafa-049f-4bca-a658-e4f8019671f6/refresh" -X GET -H "X-Tableau-Auth:GYgCrWGvTdaY-Br6D59XFw|XG7St5XXKJNLLwM7945XibSht1dkGBc0" –d @empty-tsrequest.xml"

       

      Update Workbook now

      curl "http://***/api/3.0/sites/12b22097-6bd7-41c4-a6e0-174e09705a6c/workbooks/f443eafa-049f-4bca-a658-e4f8019671f6/refresh" -X POST -H "X-Tableau-Auth:GYgCrWGvTdaY-Br6D59XFw|XG7St5XXKJNLLwM7945XibSht1dkGBc0" –d @empty-tsrequest.xml"

       

      We are on Tableau Server 2018.1.1 on Windows Server 2012 r2.

       

      Maybe I am missing something?