.. function:: PUT /orgs/{oid}/projects/{pid}/restriction/{brid}
Summary
- Method:
PUT
- Response Code:
200
- Response Formats:
application/xml
application/json
- Since:
UForge 3.7
Updates the bundle restriction for a project.
This only updates the expression rule of the bundle restriction
Note
carriage return is not authorized in the restriction rule.
- Requires Authentication:
true
- Entitlements Required:
software_upload
brid
(required): the id of the :ref:`bundlerestriction-object` to updatepid
(required): the id of the :ref:`project-object`oid
(required): the id of the :ref:`org-object`
A :ref:`bundleRestriction-object` object
curl "https://uforge.example.com/api/orgs/{oid}/projects/{pid}/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:`project-object` * :ref:`projectArtifact-addChild` * :ref:`projectArtifact-addOrRemoveFileFromCache` * :ref:`projectArtifact-create` * :ref:`projectArtifact-createFromRemoteServer` * :ref:`projectArtifact-delete` * :ref:`projectArtifact-deleteAll` * :ref:`projectArtifact-download` * :ref:`projectArtifact-downloadFile` * :ref:`projectArtifact-get` * :ref:`projectArtifact-getAll` * :ref:`projectArtifact-updateAll` * :ref:`projectArtifact-upload` * :ref:`projectLogo-delete` * :ref:`projectLogo-download` * :ref:`projectLogo-downloadFile` * :ref:`projectLogo-upload` * :ref:`projectRestrictionOS-evaluate` * :ref:`project-availableForImage` * :ref:`project-create` * :ref:`project-delete` * :ref:`project-get` * :ref:`project-getAll` * :ref:`project-update` * :ref:`softwareartifact-object`