Skip to content

Latest commit

 

History

History
69 lines (47 loc) · 1.97 KB

subscriptionProfile_create.rst

File metadata and controls

69 lines (47 loc) · 1.97 KB

subscriptionProfile_create

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

Summary

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

Create a new subscription profile in an organization. A subscription profile describes a certain number of access parameters, and is used to customize the access rights automatically provided to new users being created on the platform.

Please refer to :ref:`subscriptionprofile-object` for a complete list of all the subscription profile attributes.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: org_administrate

URI Parameters

HTTP Request Body Parameters

A :ref:`subscriptionProfile-object` object

Example Request

curl "https://uforge.example.com/api/orgs/{oid}/subscriptions" -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:subscriptionProfile xmlns:ns0="http://www.usharesoft.com/uforge">
        <active>true</active>
        <code>example</code>
        <description>Description example</description>
        <name>example</name>
</ns0:subscriptionProfile>
.. seealso::

         * :ref:`subscriptionProfileAdmins-update`
         * :ref:`subscriptionProfileOS-update`
         * :ref:`subscriptionProfileQuotas-update`
         * :ref:`subscriptionProfileRoles-update`
         * :ref:`subscriptionProfileTargetFormat-update`
         * :ref:`subscriptionProfileTargetPlatform-update`
         * :ref:`subscriptionProfile-get`
         * :ref:`subscriptionProfile-getAll`
         * :ref:`subscriptionProfile-remove`
         * :ref:`subscriptionProfile-update`
         * :ref:`subscriptionprofile-object`