Post

2 followers Follow
0
Avatar

Updating User license using API

Hi,

 

I want to update the existing user licenses using the API's 

I can able to update the user License as None and Full using API, but when I was trying to update user license to Team Member I am getting the below error,

 

Entity 'Team Member' of type 'LicenseType' was not found.

 

Kindly help me how to resolve this error

 

 

Saiteja Chelluboina Answered

Please sign in to leave a comment.

2 comments

0
Avatar

I do not believe license assignment is part of the API capabilities.

Josh Santos 0 votes
Comment actions Permalink
0
Avatar

Hi Josh, I can able to add new user and update all the fields of existing users but when I am trying to update the State field below query, I am getting the error

    method: 'POST',
    body: JSON.stringify({ 
        "UserName": "user name", 
        "Password": "password", 
        
  }),
})
.then(response => response.json())
.then(json => {
    console.log(json);
    return(json.sessionId);
})
.then(value=>
        method: 'POST',
        headers: new Headers({
               'Content-Type': 'application/json',
               'Authorization': 'Session '+value
            }),
        body: JSON.stringify({
                "LicenseType":"none",
                 "State":"suspended"
        }),   
    })
    .then(response => response.json())
    .then(json => console.log(json))
)



Saiteja Chelluboina 0 votes
Comment actions Permalink