Skip to content

Latest commit

 

History

History
73 lines (50 loc) · 2.11 KB

subscriptionProfileTargetPlatform_update.rst

File metadata and controls

73 lines (50 loc) · 2.11 KB

subscriptionProfileTargetPlatform_update

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

Summary

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

Updates the target platform access rights list in a subscription profile.

Any target platform listed in the subscription profile that is not specified in the new target platform list will be removed from the subscription profile.

Warning

The target platform provided must be part of the organization and must be visible and active in the organization.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: org_administrate

URI Parameters

HTTP Request Body Parameters

A :ref:`targetPlatforms-object` object

Example Request

curl "https://uforge.example.com/api/orgs/{oid}/subscriptions/{spid}/targetplatforms" -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:targetPlatforms xmlns:ns0="http://www.usharesoft.com/uforge">
        <targetPlatforms>
                <targetPlatform>
                        <uri>orgs/1/targetplatforms/1</uri>
                </targetPlatform>
        </targetPlatforms>
</ns0:targetPlatforms>
.. seealso::

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