Product Documentation articleUpdate a draft: lq851
Added by IBM contributorXiang Yu Hao | Edited by IBM contributorJames A Riel on April 26, 2011 | Version 4
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

No abstract provided.


This is the specification for applications that update a Draft resource.

URL endpoints

Perform a PUT operation on one of the following URL formats:
    Update the specified draft.


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


The following HTTP headers may be supported for this operation.
    Contains path and label of the resource. Non-ASCII characters can appear in this header, but they must be properly encoded according to the RFC 2047.
    Used to specify the Mime type for the content being sent to the server. POST and PUT operations will return HTTP response code 400 (Bad request) when this header is not present in the incoming request. If the collection does not support the specified content type, the server will return HTTP response code 415 (Unsupported media type).
Content-LanguageUsed to specify the language for the content being sent to the server. All content is handled via UTF-8 encoding on the server.
Content-LengthUsed to specify the content length when sending media content. This is required when sending media; otherwise HTTP response code 411 (Length required) will be returned.

Error Codes

Error Code
    Returned when the cause of an error is unknown
    Returned when the cause of an error is due to a permission restriction
    Returned when the cause of an error is related to a resource not being found
    Returned when the cause of an error is due to an invalid tag character
QuotaViolation Returned when the content being submitted exceeds the library quota

Example Request

X-Method-Override: PUT

<entry xmlns="" xml:lang="en" xmlns:td="">
<title type="text">drafttest5</title>
<summary type="text">new description</summary>

Example Response

<entry xml:base="" xmlns="" xmlns:td="" xmlns:snx="">
<link href="" rel="self"/>
<link href="" rel="alternate"/>
<link href="" rel="edit"/>
<link href="" rel="parent"/>
<link href="" rel="current"></link>
<link href="" rel="edit-media"/>
<link href="" rel="enclosure" type="application/msword" title="drafttest5" hreflang="en" length="0"/>
<source xmlns:axis2ns417="">
<collection href="" xmlns="">
<title type="text" xmlns:atom="">drafttest5</title>
<title type="text">drafttest5</title>
<summary type="html">
<![CDATA[new description]]>
<category term="draft" scheme=",2006:td/type" label="draft"/>