Thanks for reporting this. Yes, that is an error in the example. The extra /views should not be in the X-Tableau-Auth token string. I hope this didn't cause you too much inconvenience. I've updated the current docs, so the fix should appear at the next update. It looks like we have had this error for a while, so we will also need to update the older versions. We really appreciate the feedback, so don't hesitate to let us know if you see anything amiss in the future.
One other possible typo under Query Workbook Permissions calls the Parameter Value "datasource-id" when it should be "workbook-id"
On a semi related topic, I spent a lot of time today trying to issue a PUT request from Alteryx to the Add Workbook Permission REST API only to discover that the default blob format that Alteryx sends doesn't seem to be accepted by the Tableau REST API. I couldn't seem to find anything in the online help that mentioned the limitations of the of Content-Type formats anywhere.
Yes. That's another error. The parameter should be workbook-id. Thanks! I'll update the doc. The fix will appear next update.
I'm not sure what issue you could be having sending the request from Alteryx. The Tableau Server REST API supports XML and JSON. Support for JSON was added in Tableau Server 10.2. That information might not be visible as it should be.
You can set
application/xmlto control whether you want send requests or receive responses in XML or JSON. For more information, see Fundamentals of the Tableau Server REST API and REST API Example Requests.
Specific information about the MIME types (including publishing requests) is covered here :
Thanks again for the feedback!