MindTouch Developer Center > MindTouch Deki > API Reference > GET:archive/pages/{pageid}/subpages

GET:archive/pages/{pageid}/subpages

Overview

public. Retrieve the child pages that were deleted as well from deleting the given page

Uri Parameters
NameTypeDescription
pageidstringAn integer page ID of a deleted page
Query Parameters

None

Return Codes
NameValueDescription
Forbidden403Administrator access is required
Ok200The request completed successfully

Message Format

Output:

<pages.archive>
  <page.archive id="{id}" href="{uri}">
    <title>{text}</title> 
    <path>{text}</path> 
    <contents type="{contenttype}" href="{uri}" /> 
  </page.archive>
  ...
</pages.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 the subpages 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", "subpages").Get();

Sample response indicating that there is one subpage:

<pages.archive>
  <page.archive id="10169" href="http://deki-hayes/@api/deki/archive/pages/10169/info">
    <title>MySubPage</title> 
    <path>MyPage/MySubPage</path> 
    <contents type="application/x.deki0702+xml" href="http://deki-hayes/@api/deki/archive/pages/10169/contents" /> 
  </page.archive>
</pages.archive>

  

Tag page
You must login to post a comment.
Powered by MindTouch Deki Enterprise Edition v.8.08 RC1