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"
Thanks so much for flagging this, Edgar! I've created a work item for our documentation team to review.
We really appreciate you giving us a hand in keeping our docs clear and accurate!
Become a Viz Whiz on the Forums! Support the Community and master Tableau.