Skip to content

Latest commit

 

History

History
96 lines (73 loc) · 2.75 KB

mySoftwareRestriction_update.rst

File metadata and controls

96 lines (73 loc) · 2.75 KB

mySoftwareRestriction_update

.. function:: PUT /users/{uid}/mysoftware/{msid}/restriction/{brid}

Summary

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

Updates the bundle restriction for a mySoftware.

This only updates the expression rule of the bundle restriction

Note

carriage return is not authorized in the restriction rule.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: software_upload

URI Parameters

HTTP Request Body Parameters

A :ref:`bundleRestriction-object` object

Example Request

curl "https://uforge.example.com/api/users/{uid}/mysoftware/{msid}/restriction/{brid}" -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):

.. seealso::

         * :ref:`mySoftware-object`
         * :ref:`mySoftwareArtifact-add`
         * :ref:`mySoftwareArtifact-addChild`
         * :ref:`mySoftwareArtifact-addOrRemoveFileFromCache`
         * :ref:`mySoftwareArtifact-createFromRemoteServer`
         * :ref:`mySoftwareArtifact-delete`
         * :ref:`mySoftwareArtifact-deleteAll`
         * :ref:`mySoftwareArtifact-download`
         * :ref:`mySoftwareArtifact-downloadFile`
         * :ref:`mySoftwareArtifact-get`
         * :ref:`mySoftwareArtifact-getAll`
         * :ref:`mySoftwareArtifact-updateAll`
         * :ref:`mySoftwareArtifact-upload`
         * :ref:`mySoftwareExportStatus-get`
         * :ref:`mySoftwareExport-delete`
         * :ref:`mySoftwareExport-download`
         * :ref:`mySoftwareLicense-delete`
         * :ref:`mySoftwareLicense-download`
         * :ref:`mySoftwareLicense-upload`
         * :ref:`mySoftwareLicense-uploadFile`
         * :ref:`mySoftwareLogo-delete`
         * :ref:`mySoftwareLogo-download`
         * :ref:`mySoftwareLogo-downloadFile`
         * :ref:`mySoftwareLogo-upload`
         * :ref:`mySoftwareRestrictionOS-evaluate`
         * :ref:`mySoftwareRestrictionOS-getAll`
         * :ref:`mySoftwareUsage-getAll`
         * :ref:`mySoftware-availableForImage`
         * :ref:`mySoftware-clone`
         * :ref:`mySoftware-create`
         * :ref:`mySoftware-delete`
         * :ref:`mySoftware-export`
         * :ref:`mySoftware-get`
         * :ref:`mySoftware-getAll`
         * :ref:`mySoftware-update`
         * :ref:`softwareBundleImport-get`
         * :ref:`softwareartifact-object`
         * :ref:`softwarebundleImportStatus-get`
         * :ref:`softwarebundleImport-upload`
         * :ref:`softwarebundle-import`