projectArtifact_create

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

Create a new artifact inside a project. This only creates the meta-data for the artifact, please use projectArtifact_upload to upload the file(s).

Please refer to softwareFile, bootScript or osPackage 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
  • oid (required): the id of the org

HTTP Request Body Parameters

A softwareArtifact object

Example Request

curl "https://uforge.example.com/api/orgs/{oid}/projects/{pid}/artifacts" -X POST \
-u USER_LOGIN:PASSWORD -H "Accept: 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>