Skip to content

Latest commit

 

History

History
72 lines (50 loc) · 1.88 KB

targetPlatform_addFormat.rst

File metadata and controls

72 lines (50 loc) · 1.88 KB

targetPlatform_addFormat

POST /orgs/{oid}/targetplatforms/{tpid}/targetformats

Summary

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

Add a target format to a target platform.

Please refer to targetformat-object for a complete list of all the target format attributes.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: org_formats_administrate

URI Parameters

  • tpid (required): the id of the targetplatform-object
  • oid (required): the id of the org-object

HTTP Request Body Parameters

A targetFormat-object object

Example Request

curl "https://uforge.example.com/api/orgs/{oid}/targetplatforms/{tpid}/targetformats" -X POST \
-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:targetFormat xmlns:ns0="http://www.usharesoft.com/uforge">
    <name>My VBox</name>
</ns0:targetFormat>
  • targetPlatformLogo-delete
  • targetPlatformLogo-download
  • targetPlatformLogo-downloadFile
  • targetPlatformLogo-upload
  • targetPlatform-addFormat
  • targetPlatform-create
  • targetPlatform-delete
  • targetPlatform-get
  • targetPlatform-getAll
  • targetPlatform-getAllFormats
  • targetPlatform-removeFormat
  • targetPlatform-update
  • targetPlatform-updateAccess
  • targetformat-api-resources
  • targetformat-object
  • targetplatform-object