Skip to content

Latest commit

 

History

History
66 lines (44 loc) · 1.43 KB

os_update.rst

File metadata and controls

66 lines (44 loc) · 1.43 KB

os_update

.. 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.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: org_os_administrate

URI Parameters

HTTP Request Body Parameters

A :ref:`distribution-object` object

Example Request

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`