Skip to content

Latest commit

 

History

History
83 lines (62 loc) · 2.18 KB

projectArtifact_addChild.rst

File metadata and controls

83 lines (62 loc) · 2.18 KB

projectArtifact_addChild

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

Summary

  • Method: POST
  • Response Code: 201
  • Response Formats: application/xml application/json
  • Since: UForge 3.6

Creates a child in a software artifact.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: software_upload

URI Parameters

  • pid (required): the id of the project-object
  • oid (required): the id of the org-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/orgs/{oid}/projects/{pid}/artifacts/{said}/subsoftwareartifacts" -X POST \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml" --data-binary "@representation.xml"

Example of representation.xml content (the request body):

  • project-object
  • projectArtifact-addOrRemoveFileFromCache
  • projectArtifact-create
  • projectArtifact-createFromRemoteServer
  • projectArtifact-delete
  • projectArtifact-deleteAll
  • projectArtifact-download
  • projectArtifact-downloadFile
  • projectArtifact-get
  • projectArtifact-getAll
  • projectArtifact-update
  • projectArtifact-updateAll
  • projectArtifact-upload
  • projectLogo-delete
  • projectLogo-download
  • projectLogo-downloadFile
  • projectLogo-upload
  • projectOs-getAll
  • projectRestrictionOs-getAll
  • projectRestriction-add
  • projectRestriction-delete
  • projectRestriction-deleteAll
  • projectRestriction-get
  • projectRestriction-getAll
  • projectRestriction-update
  • project-create
  • project-delete
  • project-get
  • project-getAll
  • project-update
  • softwareartifact-object