mySoftwareRestriction_add

POST /users/{uid}/mysoftware/{msid}/restrictions

Adds a new Bundle Restriction to a software component.

Please refer to bundleRestriction for a complete list of all the bundle restriction attributes.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: software_upload

URI Parameters

  • uid (required): the id of the user
  • msid (required): the id of the mySoftware

HTTP Request Body Parameters

A bundleRestriction object

Example Request

curl "https://uforge.example.com/api/users/{uid}/mysoftware/{msid}/restrictions" -X POST \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml" --data-binary "@representation.xml"

Example of representation.xml content (the request body):

<ns0:bundleRestriction xmlns:ns0="http://www.usharesoft.com/uforge">
        <parentUri>users/{uid}/mysoftware/{msid}</parentUri>
        <type>DISTRIBUTION</type>
</ns0:bundleRestriction>