Overview

public. Retrieve basic page information for the deleted page

Uri Parameters
NameTypeDescription
pageidstringAn integer page ID of a deleted page
Query Parameters
NameTypeDescription
authenticatebool?Force authentication for request (default: false)
Return Codes
NameValueDescription
Forbidden403Administrator access is required
Ok200The request completed successfully

Message Format

Output:

<page.archive id="{id}" href="{uri}">
  <title>{text}</title> 
  <path>{text}</path> 
  <contents type="{contenttype}" href="{uri}" /> 
  <user.deleted id="{id}" href="{id}">
    <nick>{text}</nick> 
    <username>{text}</username> 
    <email hidden="{bool}">{text}</email> 
  </user.deleted>
  <date.deleted>{date}</date.deleted> 
</page.archive>

Implementation Notes

When a page is deleted, the page and all files on it are moved into the archive. A page is never permanently deleted; it will remain in the archive until it is restored (POST:archive/pages/{pageid}/restore). While a page is in the archive, it cannot be modified.

Use GET:archive/pages to retrieve a list of pages currently in the archive.

Code Samples

The following code example retrieves a summary of all information available for the archived page ID 10168:

Plug p = Plug.New("http://deki-hayes/@api/deki");
p.At("users", "authenticate").WithCredentials("admin", "password").Get();
p.At("archive", "pages", "10168").Get();

Sample response:

<page.archive id="10168" href="http://deki-hayes/@api/deki/archive/pages/10168/info">
  <title>MyPage</title> 
  <path>MyPage</path> 
  <contents type="application/x.deki0702+xml" href="http://deki-hayes/@api/deki/archive/pages/10168/contents" /> 
  <user.deleted id="20" href="http://deki-hayes/@api/deki/users/20">
    <nick>BrigetteK</nick> 
    <username>BrigetteK</username> 
    <email hidden="true" /> 
  </user.deleted>
  <date.deleted>2008-05-13T22:33:14Z</date.deleted> 
</page.archive>

Tag page
You must login to post a comment.