Skip to content

Latest commit

 

History

History
90 lines (68 loc) · 2.6 KB

projectArtifact_updateAll.rst

File metadata and controls

90 lines (68 loc) · 2.6 KB

projectArtifact_updateAll

PUT /orgs/{oid}/projects/{pid}/artifacts

Summary

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

Updates the information of a set of artifact contained in a project. This only updates the meta-data for the artifact. Please use projectArtifact-upload to upload the file(s).

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

Security Summary

  • Requires Authentication: true
  • Entitlements Required: org_projects_administrate

URI Parameters

  • pid (required): the id of the project-object
  • oid (required): the id of the org-object

HTTP Request Body Parameters

A softwareArtifacts-object object

Example Request

curl "https://uforge.example.com/api/orgs/{oid}/projects/{pid}/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>
  • project-object
  • projectArtifact-addChild
  • projectArtifact-addOrRemoveFileFromCache
  • projectArtifact-create
  • projectArtifact-createFromRemoteServer
  • projectArtifact-delete
  • projectArtifact-deleteAll
  • projectArtifact-download
  • projectArtifact-downloadFile
  • projectArtifact-get
  • projectArtifact-getAll
  • projectArtifact-update
  • projectArtifact-upload
  • projectLogo-delete
  • projectLogo-download
  • projectLogo-downloadFile
  • projectLogo-upload
  • projectRestrictionOS-evaluate
  • projectRestriction-update
  • project-availableForImage
  • project-create
  • project-delete
  • project-get
  • project-getAll
  • project-update
  • softwareartifact-object