Skip to content

Latest commit

 

History

History
104 lines (82 loc) · 3.18 KB

mySoftwareArtifact_updateAll.rst

File metadata and controls

104 lines (82 loc) · 3.18 KB

mySoftwareArtifact_updateAll

.. function:: PUT /users/{uid}/mysoftware/{msid}/artifacts

Summary

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

Updates the information of a set of artifact contained in a software component. This only updates the meta-data for the artifact, please use :ref:`mySoftwareArtifact-upload` to upload the file(s).

Please refer to :ref:`softwareartifact-object` (:ref:`softwarefile-object`, :ref:`bootscript-object` or :ref:`ospackage-object`) for a complete list of all the software artifact attributes.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: software_upload

URI Parameters

HTTP Request Body Parameters

A :ref:`softwareArtifacts-object` object

Example Request

curl "https://uforge.example.com/api/users/{uid}/mysoftware/{msid}/artifacts" -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:softwareArtifacts xmlns:ns0="http://www.usharesoft.com/uforge">
        <softwareArtifacts>
                <softwareFile>
                        <dbId>603</dbId>
                        <size>10</size>
                        <name>artifact-update</name>
                        <fullName>artifact-update</fullName>
                        <origName>artifact-update</origName>
                </softwareFile>
        </softwareArtifacts>
</ns0:softwareArtifacts>
.. seealso::

         * :ref:`mySoftware-object`
         * :ref:`mySoftwareArtifact-add`
         * :ref:`mySoftwareArtifact-addChild`
         * :ref:`mySoftwareArtifact-addOrRemoveFileFromCache`
         * :ref:`mySoftwareArtifact-createFromRemoteServer`
         * :ref:`mySoftwareArtifact-delete`
         * :ref:`mySoftwareArtifact-deleteAll`
         * :ref:`mySoftwareArtifact-download`
         * :ref:`mySoftwareArtifact-downloadFile`
         * :ref:`mySoftwareArtifact-get`
         * :ref:`mySoftwareArtifact-getAll`
         * :ref:`mySoftwareArtifact-update`
         * :ref:`mySoftwareArtifact-upload`
         * :ref:`mySoftwareExportStatus-get`
         * :ref:`mySoftwareExport-delete`
         * :ref:`mySoftwareExport-download`
         * :ref:`mySoftwareLicense-delete`
         * :ref:`mySoftwareLicense-download`
         * :ref:`mySoftwareLicense-upload`
         * :ref:`mySoftwareLicense-uploadFile`
         * :ref:`mySoftwareLogo-delete`
         * :ref:`mySoftwareLogo-download`
         * :ref:`mySoftwareLogo-downloadFile`
         * :ref:`mySoftwareLogo-upload`
         * :ref:`mySoftwareRestrictionOS-evaluate`
         * :ref:`mySoftwareRestriction-update`
         * :ref:`mySoftwareUsage-getAll`
         * :ref:`mySoftware-availableForImage`
         * :ref:`mySoftware-clone`
         * :ref:`mySoftware-create`
         * :ref:`mySoftware-delete`
         * :ref:`mySoftware-export`
         * :ref:`mySoftware-get`
         * :ref:`mySoftware-getAll`
         * :ref:`mySoftware-update`
         * :ref:`softwareBundleImport-get`
         * :ref:`softwareartifact-object`
         * :ref:`softwarebundleImportStatus-get`
         * :ref:`softwarebundleImport-upload`
         * :ref:`softwarebundle-import`