I'm coding a REST interface to the Tableau Server, currently working with 2018.2 beta. I have successfully coded for the signin call, and get the json packet that provides the site id and token. I can use the token to obtain the xml packet that provides content info.
However when I call signout, I keep getting a 401 unauthorized, 400, 406 etc. depending on the config. Here's what my header's look like for the 401:
[6/22/2018 20:07:39]: HTTP/1.1 401 Unauthorized
[6/22/2018 20:07:39]: User-Agent: Mozilla/3.0 (compatible; Indy Library)
[6/22/2018 20:07:39]: Accept: application/x-www-form-urlencoded,application/json,application/xml,application/xhtml+xml,text/xml,text/html
[6/22/2018 20:07:39]: Host: <myserver>
[6/22/2018 20:07:39]: Content-Length: 0
[6/22/2018 20:07:39]: Content-Type: application/x-www-form-urlencoded; charset=ISO-8859-1
[6/22/2018 20:07:39]: Connection: keep-alive
[6/22/2018 20:07:39]: Response code: 401
[6/22/2018 20:07:39]: Connected.
[6/22/2018 20:07:39]: Connecting to <my server>.
[6/22/2018 20:07:39]: Disconnected.
[6/22/2018 20:07:39]: Disconnecting.
[6/22/2018 20:07:35]: X-Tableau-Auth: nq3NjiFXQki9sy513euHuQ|yxH1U3k28k72fepsmzffleebtMmXFCqU
I'm using the Indy TIdHttp component. Have also tried with the TWebBrowser component. The help documentation for the signout call is pretty sparse.
Here's how I make the call:
Issues with the Tableau 2018.2 beta should be posted to the Tableau Prerelease site. The prerelease site will be the best place to post this issue.
When the product is released, the best place to receive help for issues with the Tableau Rest API will be here: REST API
Hope this helps!