projectRestriction_add

POST /orgs/{oid}/projects/{pid}/restrictions

Adds a new Bundle Restriction to a project.

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

  • pid (required): the id of the project
  • oid (required): the id of the org

HTTP Request Body Parameters

A bundleRestriction object

Example Request

curl "https://uforge.example.com/api/orgs/{oid}/projects/{pid}/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>orgs/{oid}/projects/{pid}</parentUri>
        <type>DISTRIBUTION</type>
</ns0:bundleRestriction>