Product Documentation articleUpdate 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 update a Comment resource.

URL endpoints

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

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


Authentication

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

Arguments

The following HTTP headers maybe supported for this operation.

Header
Description
X-Method-Override
Tunnel a 'PUT' 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_D5A9A18056EE0E9A14825785C000D5FCD/entry HTTP/1.1
Accept: */*
Accept-Language: en-us,ar-SA;q=0.7,zh-CN;q=0.3
x-requested-with: XMLHttpRequest
x-method-override: PUT
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


<entry xml:base="http://example.com/" xmlns="http://www.w3.org/2005/Atom" xmlns:td="urn:ibm.com/td" xmlns:snx="http://www.ibm.com/xmlns/prod/sn">
<title type="text">Re: upload file</title>
<summary type="html"><![CDATA

replay comment]></summary>

</entry>


Example Response for Lotus Quickr 8.5 for Domino


HTTP/1.1 200 OK
Server: Lotus-Domino
Content-Type: application/atom+xml
Content-Length: 2400
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" xmlns:snx="http://www.ibm.com/xmlns/prod/sn">
<id>urn:lsid:ibm.com:quickr:_Papiplace1_RMain_D5A9A18056EE0E9A14825785C000D5FCD</id>
<link href="http://example.com/dm/atom/library/_Papiplace1_RMain/document/_Papiplace1_RMain_D5A9A18056EE0E9A14825785C000D5FCD/entry" rel="self"/>
<link href="http://example.com/LotusQuickr/apiplace1/Main.nsf/h_Toc/5A9A18056EE0E9A14825785C000D5FCD?OpenDocument" rel="alternate"/>
<link href="http://example.com/dm/atom/library/_Papiplace1_RMain/document/_Papiplace1_RMain_D5A9A18056EE0E9A14825785C000D5FCD/entry" rel="edit"/>
<link href="http://example.com/dm/atom/library/_Papiplace1_RMain/folder/_Papiplace1_RMain" rel="parent"/>
<link href="http://example.com/dm/atom/library/_Papiplace1_RMain/document/_Papiplace1_RMain_D5A9A18056EE0E9A14825785C000D5FCD/feed" rel="current"></link>
<link href="http://example.com/dm/atom/library/_Papiplace1_RMain/document/_Papiplace1_RMain_D5A9A18056EE0E9A14825785C000D5FCD/media" rel="edit-media"/>
<link href="http://example.com/dm/atom/library/_Papiplace1_RMain/document/_Papiplace1_RMain_D5A9A18056EE0E9A14825785C000D5FCD/media" rel="enclosure" type="application/msword" title="Re: upload file" hreflang="en" length="0"/>
<source xmlns:axis2ns417="http://www.w3.org/2007/app">
<collection href="http://example.com/dm/atom/library/_Papiplace1_RMain/folder/_Papiplace1_RMain/feed" xmlns="http://www.w3.org/2007/app">
<title type="text" xmlns:atom="http://www.w3.org/2005/Atom">Re: upload file</title>
</collection>
</source>
<author>
<uri>uid=SusanAdams261%2Fou=Users%2Fl=Westford%2Fst=Massachusetts%2Fc=US%2Fou=Lotus%2Fo=Software%20group%2Fdc=ibm%2Fdc=com</uri>
<name>Susan Adams261</name>
<email></email>
</author>
<td:modifier>
<td:uri>uid=SusanAdams261%2Fou=Users%2Fl=Westford%2Fst=Massachusetts%2Fc=US%2Fou=Lotus%2Fo=Software%20group%2Fdc=ibm%2Fdc=com</td:uri>
<td:name>Susan Adams261</td:name>
<td:email></td:email>
</td:modifier>
<title type="text">Re: upload file</title>
<updated>2011-03-23T04:36:24Z</updated>
<published>2011-03-23T02:26:04Z</published>
<summary type="html"><![CDATA

replay comment]></summary>

<category term="document" scheme="tag:ibm.com,2006:td/type" label="document"/>
</entry>