Skip to content

Latest commit

 

History

History
103 lines (80 loc) · 3.07 KB

mySoftwareArtifact_update.rst

File metadata and controls

103 lines (80 loc) · 3.07 KB

mySoftwareArtifact_update

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

Summary

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

Updates the information of a software artifact in a software component.

This only updates the meta-data for the software artifact, please use mySoftwareArtifact-upload to upload the file(s).

Please refer to package-object 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-object
  • msid (required): the id of the mySoftware-object
  • said (required): the id of the softwareartifact-object

HTTP Request Body Parameters

A softwareArtifact-object object

Example Request

curl "https://uforge.example.com/api/users/{uid}/mysoftware/{msid}/artifacts/{said}" -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:softwareFile xmlns:ns0="http://www.usharesoft.com/uforge">
    <size>10</size>
    <name>artifact</name>
    <fullName>artifact</fullName>
    <origName>artifact</origName>
    <shortTag>softwarefile</shortTag>
</ns0:softwareFile>
  • mySoftware-object
  • mySoftwareArtifact-add
  • mySoftwareArtifact-addChild
  • mySoftwareArtifact-addOrRemoveFileFromCache
  • mySoftwareArtifact-createFromRemoteServer
  • mySoftwareArtifact-delete
  • mySoftwareArtifact-deleteAll
  • mySoftwareArtifact-download
  • mySoftwareArtifact-downloadFile
  • mySoftwareArtifact-get
  • mySoftwareArtifact-getAll
  • mySoftwareArtifact-updateAll
  • mySoftwareArtifact-upload
  • mySoftwareExportStatus-get
  • mySoftwareExport-delete
  • mySoftwareExport-download
  • mySoftwareLicense-delete
  • mySoftwareLicense-download
  • mySoftwareLicense-upload
  • mySoftwareLicense-uploadFile
  • mySoftwareLogo-delete
  • mySoftwareLogo-download
  • mySoftwareLogo-downloadFile
  • mySoftwareLogo-upload
  • mySoftwareRestrictionOS-evaluate
  • mySoftwareRestriction-update
  • mySoftwareUsage-getAll
  • mySoftware-availableForImage
  • mySoftware-clone
  • mySoftware-create
  • mySoftware-delete
  • mySoftware-export
  • mySoftware-get
  • mySoftware-getAll
  • mySoftware-update
  • softwareBundleImport-get
  • softwareartifact-object
  • softwarebundleImportStatus-get
  • softwarebundleImport-upload
  • softwarebundle-import