Skip to content

Latest commit

 

History

History
72 lines (50 loc) · 2 KB

workspaceTemplateComment_create.rst

File metadata and controls

72 lines (50 loc) · 2 KB

workspaceTemplateComment_create

POST /orgs/{oid}/workspaces/{wid}/templates/{tid}/comments

Summary

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

Posts a comment to a shared appliance template in a workspace.

Please refer to comment-object for a complete list of all the comment attributes.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: appliance_create

URI Parameters

  • wid (required): the id of the workspace-object
  • oid (required): the id of the org-object
  • tid (required): the id of the gallerytemplate-object

HTTP Request Body Parameters

A comment-object object

Example Request

curl "https://uforge.example.com/api/orgs/{oid}/workspaces/{wid}/templates/{tid}/comments" -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:comment xmlns:ns0="http://www.usharesoft.com/uforge">
    <message>Comment Example</message>
    <type>QUESTION</type>
</ns0:comment>
  • comment-object
  • workspace-api-resources
  • workspaceTemplateComment-create
  • workspaceTemplateComment-delete
  • workspaceTemplateComment-deleteAll
  • workspaceTemplateComment-dislike
  • workspaceTemplateComment-get
  • workspaceTemplateComment-getAll
  • workspaceTemplateComment-like
  • workspaceTemplateComment-reply
  • workspaceTemplateComment-reportAbuse
  • workspaceTemplateComment-update
  • workspacecomments-api-resources
  • workspacetemplate-api-resources