mySoftwareArtifact_updateAll

PUT /users/{uid}/mysoftware/{msid}/artifacts

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

Please refer to softwareArtifact (softwareFile, bootScript or osPackage) for a complete list of all the software artifact attributes.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: software_upload

URI Parameters

  • uid (required): the id of the user
  • msid (required): the id of the mySoftware

HTTP Request Body Parameters

A softwareArtifacts object

Example Request

curl "https://uforge.example.com/api/users/{uid}/mysoftware/{msid}/artifacts" -X PUT \
-u USER_LOGIN:PASSWORD -H "Accept: 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>