Skip to content

Latest commit

 

History

History
71 lines (49 loc) · 1.54 KB

orgOS_add.rst

File metadata and controls

71 lines (49 loc) · 1.54 KB

orgOS_add

.. function:: POST /orgs/{oid}/distributions

Summary

  • Method: POST
  • Response Code: 201
  • Response Formats: application/xml application/json
  • Since: N/A

Registers a new operating system to an organization.

Please refer to :ref:`distribution-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/orgs/{oid}/distributions" -X POST \
-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):

.. seealso::

         * :ref:`distribution-object`
         * :ref:`license-object`
         * :ref:`org-object`
         * :ref:`orgCompany-getAll`
         * :ref:`orgMember-getAll`
         * :ref:`orgMember-getAll`
         * :ref:`orgMember-remove`
         * :ref:`orgMember-remove`
         * :ref:`orgMember-update`
         * :ref:`orgMember-update`
         * :ref:`orgOSWindows-add`
         * :ref:`orgOSWindows-delete`
         * :ref:`orgOSWindows-getAll`
         * :ref:`orgOS-getAll`
         * :ref:`orgOS-update`
         * :ref:`org-create`
         * :ref:`org-get`
         * :ref:`org-getAll`
         * :ref:`user-object`