Home
Create a comment
Create a comment programmatically.
See Authenticating requests for information about how to authenticate the request.
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. {userid} is the value of the <snx:userid> of the person who owns the file and {document-id} is the value of the <td:uuid> or <td:label> of the file and can be found in the file's Atom document. See Searching Profiles for information about how to determine a person's user ID.
Input
Comment Atom entry document. Specify the Content-Type header as application/atom+xml. You can also provide a Content-Length header that specifies the length of the input XML. To provide a comment as plain text, provide a Content-Type header of text/plain. You can also specify the length of the text using the Content-Length 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
- Indicates that the comment entry was successfully created. If an error occurs, this header will contain one of the error codes below.
Error codes
- HTTP/1.1 401 Unauthorized
- HTTP/1.1 404 Not Found
Related reference