Product Documentation articleDelete a comment: lq851
Added by IBM contributorTao YT Yan | Edited by IBM contributorDana Liburdi on April 18, 2011 | Version 3
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

No abstract provided.
Tags: API

Overview

This is the specification for applications that delete a Comment resource.

A Comment resource may also be indirectly deleted if its parent resource container type is deleted (i.e. Draft, Document) since deletion of those resources results in all contained items to be deleted as well.

URL endpoints

Perform a DELETE operation on one of the following URL formats:

URL
Description
/library/{library-id}/page/{comment-id}/entry
Delete the specified comment

Authentication

This method requires authentication. The authenticated user must have 'Delete' authority on the specified resource.

Arguments

The following HTTP headers maybe supported for this operation.

Header
Description
X-Method-Override
Tunnel a 'DELETE' request over HTTP POST


Error Codes

Error Code
Description
Unknown
Returned when the cause of an error is unknown
AccessDenied
Returned when the cause of an error is due to a permission restriction
ItemNotFound
Returned when the cause of an error is related to a resource not being found

Example Request for Lotus Quickr 8.5 for Domino


POST http://example.com/dm/atom/library/_Papiplace1_RMain.nsf/page/_Papiplace1_RMain_D9329CA45987B257D4825785C000FA2A1/entry HTTP/1.1
Accept: */*
Accept-Language: en-us,ar-SA;q=0.7,zh-CN;q=0.3
Referer: http://example.com/LotusQuickr/apiplace1/Main.nsf/h_Toc/4df38292d748069d0525670800167212/?OpenDocument
x-requested-with: XMLHttpRequest
x-method-override: DELETE
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; MALC; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Host: example.com

Example Response for Lotus Quickr 8.5 for Domino


HTTP/1.1 200 OK
Server: Lotus-Domino
Content-Type: application/atom+xml
X-Server: Lotus Domino

<?xml version="1.0" encoding="utf-8" ?>
<entry xml:base="http://example.com/" xmlns="http://www.w3.org/2005/Atom" xmlns:td="urn:ibm.com/td"></entry>