Delete a comment 

Delete a comment associated with a file belonging to you or to someone else and to which you have access.

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

Table 1. Atom API request details

Method URI Input and output representations Description
DELETE /basic/api/userlibrary/{userid}/document/{document-id}/comment/{comment-id}/entry none Deletes a comment from a someone else's file.
DELETE /basic/api/myuserlibrary/document/{document-id}/comment/{comment-id}/entry none Deletes a comment from one of your files.

You can also find the URI of the resource in the value of the href attribute of the <link rel="edit"> element for each entry in the Comments feed.

You can use this input header in a POST request instead of using the DELETE request.

Table 2. Input headers

Parameter Description
X-Method-Override Tunnels a DELETE request over HTTP POST

You can use this input parameter with the DELETE request.

Table 3. 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

None.


Output

None.

Returned HTTP headers

HTTP/1.1 200 OK

Error codes


Parent topic

Work with comments

Related reference
Search Profiles programmatically
Files comment content


   

 

});

+

Search Tips   |   Advanced Search