Skip to content

Latest commit

 

History

History
73 lines (51 loc) · 2.05 KB

workspaceTemplateComment_reply.rst

File metadata and controls

73 lines (51 loc) · 2.05 KB

workspaceTemplateComment_reply

.. function:: POST /orgs/{oid}/workspaces/{wid}/templates/{tid}/comments/{cid}/replies

Summary

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

Create a reply to a comment.

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

Security Summary

  • Requires Authentication: true
  • Entitlements Required: appliance_create

URI Parameters

HTTP Request Body Parameters

A :ref:`comment-object` object

Example Request

curl "https://uforge.example.com/api/orgs/{oid}/workspaces/{wid}/templates/{tid}/comments/{cid}/replies" -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>Example Reply</message>
        <type>REPLY</type>
</ns0:comment>
.. seealso::

         * :ref:`comment-object`
         * :ref:`workspace-api-resources`
         * :ref:`workspaceTemplateComment-create`
         * :ref:`workspaceTemplateComment-delete`
         * :ref:`workspaceTemplateComment-deleteAll`
         * :ref:`workspaceTemplateComment-dislike`
         * :ref:`workspaceTemplateComment-get`
         * :ref:`workspaceTemplateComment-getAll`
         * :ref:`workspaceTemplateComment-like`
         * :ref:`workspaceTemplateComment-reply`
         * :ref:`workspaceTemplateComment-reportAbuse`
         * :ref:`workspaceTemplateComment-update`
         * :ref:`workspacecomments-api-resources`
         * :ref:`workspacetemplate-api-resources`