.. function:: PUT /distributions/{id}
Summary
- Method:
PUT
- Response Code:
200
- Response Formats:
application/xml
application/json
- Since:
UForge 1.0
Updates the meta-data information of an operating system.
Please refer to :ref:`distribprofile-object` for a complete list of all the os
attributes.
- Requires Authentication:
true
- Entitlements Required:
org_os_administrate
id
(required): the id of the :ref:`distribution-object`
A :ref:`distribution-object` object
curl "https://uforge.example.com/api/distributions/{id}" -X PUT \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml"-H "Content-type: application/xml" --data-binary "@representation.xml"
Example of representation.xml content (the request body):
<ns0:distribution xmlns:ns0="http://www.usharesoft.com/uforge">
<active>false</active>
</ns0:distribution>
.. seealso:: * :ref:`distribution-object` * :ref:`osAccess-update` * :ref:`osLicense-download` * :ref:`osLogo-download` * :ref:`osLogo-downloadFile` * :ref:`osPkgUpdates-getAll` * :ref:`osPkg-get` * :ref:`osPkg-getAll` * :ref:`os-create` * :ref:`os-get` * :ref:`os-getAll`