.. function:: PUT /orgs/{oid}/projects/{pid}/artifacts/{said}
Summary
- Method:
PUT
- Response Code:
200
- Response Formats:
application/xml
application/json
- Since:
UForge 1.0
Updates the information of a software artifact in a project. This only updates the meta-data for the software artifact. Please use :ref:`projectArtifact-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.
- Requires Authentication:
true
- Entitlements Required:
software_upload
pid
(required): the id of the :ref:`project-object`oid
(required): the id of the :ref:`org-object`said
(required): the id of the :ref:`softwareartifact-object`
A :ref:`softwareArtifact-object` object
curl "https://uforge.example.com/api/orgs/{oid}/projects/{pid}/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>
.. seealso:: * :ref:`project-object` * :ref:`projectArtifact-addChild` * :ref:`projectArtifact-addOrRemoveFileFromCache` * :ref:`projectArtifact-create` * :ref:`projectArtifact-createFromRemoteServer` * :ref:`projectArtifact-delete` * :ref:`projectArtifact-deleteAll` * :ref:`projectArtifact-download` * :ref:`projectArtifact-downloadFile` * :ref:`projectArtifact-get` * :ref:`projectArtifact-getAll` * :ref:`projectArtifact-updateAll` * :ref:`projectArtifact-upload` * :ref:`projectLogo-delete` * :ref:`projectLogo-download` * :ref:`projectLogo-downloadFile` * :ref:`projectLogo-upload` * :ref:`projectRestrictionOS-evaluate` * :ref:`projectRestriction-update` * :ref:`project-availableForImage` * :ref:`project-create` * :ref:`project-delete` * :ref:`project-get` * :ref:`project-getAll` * :ref:`project-update` * :ref:`softwareartifact-object`