Cannot add new User via REST API

Answered

Comments

8 comments

  • Avatar
    Michael Becker

    Hi Gleedo,

    are you using 0.9 or 1.0 API? 

    1
    Comment actions Permalink
  • Avatar
    Andrew Gleed

    Good question! I thought 1.0, but now that you have mentioned it, how do you know in code, which api you are calling?

    Does the base URI change depending on which version of the API is called?

    Like I said, I'm new to this so may well be making a silly mistake :(

    0
    Comment actions Permalink
  • Avatar
    Andrew Gleed

    Confirming version 1.0, but get same issue with both API versions.

    0
    Comment actions Permalink
  • Avatar
    Andrew Gleed

    So it seems simply adding v1 into my base URI has fixed the problem.   We live and learn :)

    1
    Comment actions Permalink
  • Avatar
    Oxana Noa Umansky

    Hi Andrew, glad you were able to find the solution and thank you for sharing it back here. 

    Good luck exploring 🎓!

     

    @Michal thanks for chiming in!

    0
    Comment actions Permalink
  • Avatar
    Andrew Gleed

    No problem.  I still don't understand, yet, why I do not need to add v1 to the URI when performing GET called though....I will figure it out eventually :)

    0
    Comment actions Permalink
  • Avatar
    Michael Becker

    Hi Andrew,

    glad you are moving forward with this! In general calls which exist in both, are accessed without specifying v1 part. I think that is because 0.9 equivalents were depreciated. What I found out initially is to start with Swagger and see how the curl is structured there and always start with v 1.0. Also try to identify through web browser console, what Sisense is doing when you add user or add a new group, it might be helpful how that is used internally by Sisense's engine. Good luck and if you need any help, let us know here :)

    Regards,

    Michał 

    0
    Comment actions Permalink
  • Avatar
    Rajiv Acharya

    As an aside for those that are still having issues w/ the API, one method we used was to do the action we wanted to emulate within the Web UI and monitor the network traffic (e.g. via Chrome's Dev Tools).  This allowed us to identify the exact usage pattern for replicating functionality.  Keep in mind that the web UI still makes use of the deprecated 0.9 API, so use at your own risk, but was one way that got us moving forward in our development.

    0
    Comment actions Permalink

Please sign in to leave a comment.