Azure DevOps RestAPI to change the User Access Level

Viewed 151
2 Answers

As far as I can see, the body of the request you send is a JSON object, but the example in the documentation specifies the body as JSON array. Not sure if it's a strict requirement, but try wrapping the body into [].

Please use the following body which should work as expected.

[
    {
        "from":"",
        "op":"replace",
        "path":"/accessLevel",
        "value":{
            "accountLicenseType":"stakeholder",
            "licensingSource":"account"
        }
    }
]

See: Examples for more details.

Related