6 Replies Latest reply on Feb 28, 2019 11:47 AM by James Holt

    Tableau online Rest API signin - HTTP Error 405 , Method Not Allowed

    Lionel Messi

      Hi Team,


      I am following the sample code (Python Example for Sign In and Sign Out (JSON)) provided here: https://onlinehelp.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_auth.htm

      I filled in the server_name, user_name, password and site_url_id variables for our Tableau Online instance.


      server_name: I used  "online.tableau.com"

      user_name, password:I used the username and password of a local TOL admin account

      site_url_id: I used the site id string, not the site name


      When I run the script I receive this error: "

      requests.exceptions.HTTPError: 405 Client Error: Method Not Allowed for url: https://online.tableau.com/api/3.2/auth/signin"


      i also tried using TSC client, getting below error even if i am using below code available in sample examples,


      tableau_auth = TSC.TableauAuth('#####', '#####',site_id='######')

      server = TSC.Server('http://online.tableau.com')

      server.version = "3.2"
      with server.auth.sign_in(tableau_auth):



      error description : -



      405000: Method Not Allowed

      The HTTP method 'GET' is not supported for the given resource



      Am I missing something here? Are Post Requests not allowed on TOL?


      any guidance is appreciated! Thanks!