Skip to content

Latest commit

 

History

History
67 lines (46 loc) · 1.71 KB

targetFormat_addTargetPlatform.rst

File metadata and controls

67 lines (46 loc) · 1.71 KB

targetFormat_addTargetPlatform

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

Summary

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

Adds the target format to a target platform. This is equivalent to targetPlatform-addFormat.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: org_formats_administrate

URI Parameters

  • oid (required): the id of the org-object
  • tfid (required): the id of the targetformat-object to add

HTTP Request Body Parameters

A targetPlatform-object object

Example Request

curl "https://uforge.example.com/api/orgs/{oid}/targetformats/{tfid}/targetplatforms" -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):

  • imageformat-object
  • primitiveFormat-getAll
  • primitiveFormat-update
  • targetFormatLogo-delete
  • targetFormatLogo-download
  • targetFormatLogo-downloadFile
  • targetFormatLogo-upload
  • targetFormat-create
  • targetFormat-delete
  • targetFormat-get
  • targetFormat-getAll
  • targetFormat-update
  • targetFormat-updateAccess
  • targetformat-object
  • targetplatform-api-resources
  • targetplatform-object