Product Documentation articleDelete a draft and all contained resources: lq851
Added by IBM contributorXiang Yu Hao | Edited by IBM contributorXiang Yu Hao on April 18, 2011 | Version 2
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

No abstract provided.

Overview



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

Deletion of a Draft will result in all associated resources (i.e. [Comment], [Version], [Attachment]) to be deleted as well.

URL endpoints

URL
Description
/library/{library-id}/draft/{draft-id}/entry
Delete the specified draft in the specified library.


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






Example Response




<entry xml:base="http://hao.cn.ibm.com/" xmlns="http://www.w3.org/2005/Atom" xmlns:td="urn:ibm.com/td">
	<td:trashid>_Pplace11_RMain_DB30C6F9FEAA80A3F48257876002C90E9</td:trashid>
</entry>