Skip to main content link. Accesskey S
  • Log In
  • Help
  • IBM Logo
  • Lotus Quickr wiki
  • All Wikis
  • All Forums
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • IBM Redbooks
Community Articles Product Documentation Learning Center IBM Redbooks This category Lotus Quickr 8.5 for WebSphere Portal Documentation Lotus Quickr 8.5.1 for Domino Documentation Lotus Quickr Connectors 8.5 Documentation Custom Search Scope...
Search
  • New Article
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

IBM contributorYing BJ Mo
Contribution Summary:
  • Articles authored: 9
  • Articles edited: 0
  • Comments Posted: 0

Recent articles by this author

Delete versions for document: lq851

Overview This is the specification for applications that delete Version resources from a Document. URL endpoints Perform a DELETE operation on one of the following URL formats: URL Description library{libraryid}document{documentid}feed Delete versions. Authentication ...

Return binary content for version: lq851

Overview This is the specification for applications that retrieve Version binary resources. URL endpoints Perform a GET operation on one of the following URL formats: URL Description library{libraryid}document{documentid}version{versionid}media Retrieve a document given its ...

Delete a version: lq851

Overview This is the specification for applications that delete a Version resource. A Version resource may also be indirectly deleted if its parent resource container type is deleted (i.e. Document) since deletion of those resources results in all contained items to be deleted as well. ...

Retrieve a version: lq851

Overview This is the specification for applications that retrieve Version resources. URL endpoints Perform a GET operation on one of the following URL formats: URL Description library{libraryid}document{documentid}version{versionid}entry Retrieve a version given its id. ...

Create a version: lq851

Overview This is the specification for applications that create Version resources. URL endpoints POST a Version Atom entry to one of the following URL formats: URL Description library{libraryid}document{documentid}feed Create a version. Authentication Permission This ...

Community articleTechnical Preview: Delete versions for document

Added by IBM contributor Ying BJ Mo on March 28, 2011 |
expanded Abstract
collapsed Abstract
No abstract provided.
Tags: API
ShowTable of Contents
HideTable of Contents
  • 1 Overview
  • 2 URL endpoints
  • 3 Authentication
  • 4 Arguments
  • 5 Error Codes
  • 6 Example Request for Quickr Domino 8.5
  • 7 Example Response for Quickr Domino 8.5

Overview



This is the specification for applications that delete Version resources from a Document.

URL endpoints



Perform a DELETE operation on one of the following URL formats:
URL
Description
/library/{library-id}/document/{document-id}/feed
Delete versions.

Authentication



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

Arguments



The following HTTP headers may be supported for this operation.
Header
Description
X-Method-Override
Tunnel a 'DELETE' request over HTTP POST.

The following URL arguments are supported on this operation. The default value for any argument is marked as bold in the table below.
Argument
Values
Description
category
String { version }
Resource being delete, required argument for feed url.
delete
int
Required for versions. This is the version number to start deleting from. All version numbers less than or equal to this version number are deleted.


Error Codes



The following error codes could appear in a response body for an invalid request:
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 Quickr Domino 8.5



POST /dm/atom/library/_Ptest002_RMain.nsf/document/_Ptest002_RMain.nsf_D46DD905A03108B0F48257853002BDB79/feed?category=version&deleteFrom=4 HTTP/1.1
Host: example.com
Content-Type: application/atom+xml
X-Method-Override: DELETE

<?xml version="1.0" encoding="utf-8"?>
<a:entry xmlns:a="http://www.w3.org/2005/Atom">
</a:entry>


Example Response for Quickr Domino 8.5



200 OK

<?xml version="1.0" encoding="utf-8"?>
<feed xml:base="http://example.com/" xmlns="http://www.w3.org/2005/Atom" xmlns:td="urn:ibm.com/td">
</feed>
expanded Attachments (0)
collapsed Attachments (0)
expanded Versions (3)
collapsed Versions (3)
Version Comparison     
VersionDateChanged by              Summary of changes
2Apr 15, 2011 11:05:12 AMJames A Riel  IBM contributor
1Mar 28, 2011 4:41:06 AMYing BJ Mo  IBM contributor
This version (0)Mar 28, 2011 4:48:22 AMYing BJ Mo  IBM contributor
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedHelpAbout
  • IBM Collaboration Solutions wikis
  • IBM developerWorks
  • IBM Software support
  • Twitter LinkIBMSocialBizUX on Twitter
  • FacebookIBMSocialBizUX on Facebook
  • ForumsLotus product forums
  • BlogsIBM Social Business UX Blog
  • Community LinkIBM Collaboration Solutions
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Accessibility
  • IBM Terms of use
  • Wiki terms of use