1 Reply Latest reply on Nov 8, 2019 3:09 PM by Santiago Sanchez

    REST API Get Started Tutorial Part 2 Errata

    Edgar Lee

      Under Make a REST request to publish a workbook at Get Started Tutorial Part 2: Create a Project and Publish a Workbook to it - Tableau

      the curl command to publish a workbook is current published as:

       

      curl "https://MY_SERVER/api/3.4/sites/site-id/workbooks" -X POST -H "X-Tableau-Auth:credentials token" -H "Content-Type: multipart/mixed;" -F "request_payload=@publish-workbook.xml" -F "MY_WORKBOOK.twbx"

       

       

      This is incorrect and throws an error. The correct curl command should be

       

       

      curl "https://MY_SERVER/api/3.4/sites/site-id/workbooks" -X POST -H "X-Tableau-Auth:credentials token" -H "Content-Type: multipart/mixed;" -F "request_payload=@publish-workbook.xml" -F "tableau_workbook=@MY_WORKBOOK.twbx"