repository_update

PUT /orgs/{oid}/repositories/{rid}

Update the repository in an organisation.

Please refer to repository for a complete list of all the repository attributes.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: org_administrate

URI Parameters

  • oid (required): the id of the org
  • rid (required): the id of the repository

HTTP Request Body Parameters

A repository object

Example Request

curl "https://uforge.example.com/api/orgs/{oid}/repositories/{rid}" -X PUT \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml" --data-binary "@representation.xml"

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

<ns0:repository xmlns:ns0="http://www.usharesoft.com/uforge">
        <name>Example Repository - Updated</name>
        <url>http://example.com/newrepoUrl</url>
        <packagingType>RPM</packagingType>
        <officiallySupported>true</officiallySupported>
</ns0:repository>