Skip to content

Latest commit

 

History

History
74 lines (53 loc) · 1.54 KB

org_create.rst

File metadata and controls

74 lines (53 loc) · 1.54 KB

org_create

.. function:: POST /orgs

Summary

  • Method: POST
  • Response Code: 201
  • Response Formats: application/xml application/json
  • Since: UForge 3.3

Creates a new organization.

Please refer to :ref:`org-object` for a complete list of all the organization attributes.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: org_administrate

URI Parameters

None HTTP Request Body Parameters ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

A :ref:`org-object` object

Example Request

curl "https://uforge.example.com/api/orgs" -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):

<ns0:org xmlns:ns0="http://www.usharesoft.com/uforge">
        <name>Org Name Example</name>
</ns0:org>
.. seealso::

         * :ref:`distribprofile-object`
         * :ref:`license-object`
         * :ref:`org-object`
         * :ref:`orgCompany-getAll`
         * :ref:`orgLicense-download`
         * :ref:`orgLicense-getAll`
         * :ref:`orgMember-getAll`
         * :ref:`orgMember-getAll`
         * :ref:`orgMember-remove`
         * :ref:`orgMember-remove`
         * :ref:`orgMember-update`
         * :ref:`orgMember-update`
         * :ref:`orgOSWindows-add`
         * :ref:`orgOSWindows-getAll`
         * :ref:`orgOS-add`
         * :ref:`orgOS-getAll`
         * :ref:`orgOS-update`
         * :ref:`org-get`
         * :ref:`org-getAll`
         * :ref:`user-object`