Skip to content

Latest commit

 

History

History
66 lines (44 loc) · 1.58 KB

repository_update.rst

File metadata and controls

66 lines (44 loc) · 1.58 KB

repository_update

.. function:: PUT /orgs/{oid}/repositories/{rid}

Summary

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

Update the repository in an organisation.

Please refer to :ref:`repository-object` for a complete list of all the repository attributes.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: org_administrate

URI Parameters

HTTP Request Body Parameters

A :ref:`repository-object` object

Example Request

curl "https://uforge.example.com/api/orgs/{oid}/repositories/{rid}" -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):

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

         * :ref:`distribprofile-object`
         * :ref:`repository-object`
         * :ref:`repositoryOS-getAll`
         * :ref:`repository-create`
         * :ref:`repository-delete`
         * :ref:`repository-getAll`
         * :ref:`repository-update`