Home
Updating a comment
Update the Atom document representation of the comment associated with a file.
This method replaces the current comment Atom document. To find out how to first retrieve the comment that you want to update, see Retrieving a comment.
You must authenticate this request.
Atom API request details
Method URI Output representation Description PUT /basic/api/userlibrary/{userid}/document/{document-id}/comment/{comment-id}/entry comment Atom document Updates a comment associated with someone else's file. PUT /basic/api/myuserlibrary/document/{document-id}/comment/{comment-id}/entry comment Atom document Updates a comment associated with one of your files.
{document-id} is the value of the <td:uuid> or <td:label> elements in the file's Atom entry document and {userid} is the value of the <snx:userid> of the person who owns the file. See Searching Profiles for more information about how to determine a person's user ID.
Input
A comment Atom entry document. Specify the Content-Type header as application/atom+xml, and provide a Content-Length header that specifies the length of the input XML. To provide the comment as plain text, provide a Content-Type header of text/plain, and specify the length of the text using the Content-Length header.
Output
An updated comment Atom entry document. Returned HTTP Headers
- HTTP/1.1 200 OK
- Indicates that the comment was successfully updated. 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