Retrieve the child pages that were deleted as well from deleting the given page
| Name | Type | Description |
| pageid | string | An integer page ID of a deleted page |
| Name | Type | Description |
| authenticate | bool? | Force authentication for request (default: false) |
| Name | Value | Description |
| OK | 200 | The request completed successfully |
| Forbidden | 403 | Administrator access is required |
Output:
<pages.archive>
<page.archive id="{id}" href="{uri}">
<title>{text}</title>
<path>{text}</path>
<contents type="{contenttype}" href="{uri}" />
</page.archive>
...
</pages.archive>
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.
The following code example retrieves the sub-pages 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();
<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>
Add notes about requirements or config values
The following command retrieves information about the sub-pages of an archived page (page.archiveID = 1)
curl -u admin:password -i http://mindtouch.address/@api/deki/archive/pages/1/subpages
page.archiveID = 589 (page name "Test") has two sub-pages.
<pages.archive>
<page.archive id="563" href="http://192.168.59.128/@api/deki/archive/pages/563/info">
<title>Foo</title>
<path>Test/Foo</path> <!-- Foo, subpage of Test -->
<contents type="application/x.deki0805+xml" href="http://192.168.59.128/@api/deki/archive/pages/563/contents"/>
</page.archive>
<page.archive id="564" href="http://192.168.59.128/@api/deki/archive/pages/564/info">
<title>Pidgin</title>
<path>Test/Foo/Pidgin</path> <!-- Pidgin, subpage of Foo, which is a subpage of Test -->
<contents type="application/x.deki0805+xml" href="http://192.168.59.128/@api/deki/archive/pages/564/contents"/>
</page.archive>
</pages.archive>
<pages.archive />