2 Replies Latest reply: Jul 27, 2017 4:30 AM by Christian Hoefig RSS

    API License Add Error

    C Hunter

      Forgive me if this is in the wrong discussion area.

       

      I am trying to automate the setup of a Qlik Sense server and am attempting to add a license to a new Qlik Sense Enterprise server through the API.


      So I'm seeing the following request:

      https://WINTEST:4242/qrs/license?Xrfkey=ABCDEFG123456789&control=12345


      With the following headers:

      X-Qlik-Xrfkey : ABCDEFG123456789

      X-Qlik-User : UserDirectory=internal;UserId=sa_repository

      Content-Type : application/json

       

      And the body:

      {

          "lef": "",

          "serial": "123456789012345",

          "name": "myUser",

          "organization": "myOrg"

      }

       

      I'm getting the following 400 response:

      [

          {

              "schemaPath": "User",

              "errorText": "You are not allowed to change your own role."

          }

      ]


      Any thoughts of why I'm getting a "User" error on installing a license?  Do I need to do something with the "sa_respository" user first?


      Thank you in advance for any help.