Skip to content

Latest commit

 

History

History
66 lines (44 loc) · 1.42 KB

os_update.rst

File metadata and controls

66 lines (44 loc) · 1.42 KB

os_update

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 distribprofile-object for a complete list of all the os attributes.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: org_os_administrate

URI Parameters

  • id (required): the id of the org-object

HTTP Request Body Parameters

A 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>
  • distribution-object
  • osAccess-update
  • osLicense-download
  • osLogo-download
  • osLogo-downloadFile
  • osPkgUpdates-getAll
  • osPkg-get
  • osPkg-getAll
  • os-create
  • os-get
  • os-getAll