PUT /orgs/{oid}/workspaces/{wid}/templates/{tid}/comments/{cid}
Summary
- Method:
PUT
- Response Code:
200
- Response Formats:
application/xml
application/json
- Since:
UForge 3.3.2
Updates the information of a comment.
This can include flagging the comment as abusive.
Note
you cannot change the contents of the original comment message using this request.
- Requires Authentication:
true
- Entitlements Required:
appliance_create
wid
(required): the id of theworkspace-object
oid
(required): the id of theorg-object
tid
(required): the id of thegallerytemplate-object
cid
(required): the id of thecomment-object
A comment-object
object
curl "https://uforge.example.com/api/orgs/{oid}/workspaces/{wid}/templates/{tid}/comments/{cid}" -X PUT \
-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>Initial message</message>
<abused>true</abused>
</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