Create a comment 

Create a comment programmatically.

See Authenticating requests for information about how to authenticate the request.

Table 1. Atom API request details

Method Resource address Input representation Description
POST /basic/api/userlibrary/{userid}/document/{document-id}/feed comment Atom entry document or plain text Adds a comment to the specified file.

You can use this input parameter with the POST request.

Table 2. Input parameters

Parameter Description
identifier Indicates how the document is identified in the {document-id} variable segment of the web address. By default, look up is performed with the expectation that the URL contains the value from the <td:uuid> element of a File Atom entry. Specify "label" if the URL instead contains the value from the <td:label> element of a File Atom entry.


Input

You can provide the comment as an Atom entry document or as plain text in the request header.


Output

A comment Atom entry document that includes the unique identifier of the comment and URLs to retrieve the comment.

Returned HTTP headers

HTTP/1.1 201 Created

Error codes


Parent topic

Work with comments

Related reference
Search Profiles programmatically
Files comment content


   

 

});