userOS_update

PUT /users/{uid}/distros

Updates the list of operating systems the user has access to.

Please refer to distribProfile for a complete list of all the operating system attributes.

Warning

Any operating system that the user currently has access to that is not specified in the new operating system list will be removed, this effectively de-activates those operating systems for the user.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: org_os_administrate

URI Parameters

  • uid (required): the user name (login name) of the user

HTTP Request Body Parameters

A distributions object

Example Request

curl "https://uforge.example.com/api/users/{uid}/distros" -X PUT \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml" --data-binary "@representation.xml"

Example of representation.xml content (the request body):

<ns0:distributions xmlns:ns0="http://www.usharesoft.com/uforge">
        <distributions>
                <distribution>
                        <active>true</active>
                        <uri>distributions/43</uri>
                        <visible>true</visible>
                </distribution>
        </distributions>
</ns0:distributions>