PUT /users/{uid}/distros
Summary
- Method:
PUT
- Response Code:
200
- Response Formats:
application/xml
application/json
- Since:
UForge 3.2
Updates the list of operating systems the user has access to.
Please refer to distribprofile-object
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.
- Requires Authentication:
true
- Entitlements Required:
org_os_administrate
uid
(required): the user name (login name) of theuser-object
A distributions-object
object
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>
distribprofile-object
userOS-getAll
userOS-update