Skip to content

Latest commit

 

History

History
70 lines (48 loc) · 1.87 KB

subscriptionProfile_update.rst

File metadata and controls

70 lines (48 loc) · 1.87 KB

subscriptionProfile_update

.. function:: PUT /orgs/{oid}/subscriptions/{spid}

Summary

  • Method: PUT
  • Response Code: 200
  • Response Formats: application/xml application/json
  • Since: UForge 3.5

Update the information of a subscription profile.

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/{spid}" -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:subscriptionProfile xmlns:ns0="http://www.usharesoft.com/uforge">
        <active>true</active>
        <code>example2</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-create`
         * :ref:`subscriptionProfile-get`
         * :ref:`subscriptionProfile-getAll`
         * :ref:`subscriptionProfile-remove`
         * :ref:`subscriptionprofile-object`