Was this page helpful?

POST:archive/pages/{pageid}/restore

    Overview

    public. Restore all revisions of a given page

    Uri Parameters
    NameTypeDescription
    pageidintAn integer page ID from GET: archive/pages
    Query Parameters
    NameTypeDescription
    authenticatebool?Force authentication for request (default: false)
    reasonstring?Reason for reverting
    tostringnew page title
    Return Codes
    NameValueDescription
    Conflict409A title with the same path already exists. To restoring to a different path with '?to='
    Forbidden403Administrator access is required
    NotFound404Unable to find the page to delete
    Ok200The request completed successfully

    Message Format

    Output:

    <pages.restored>
      <page id="{id}" href="{uri}">
        <title>{text}</title> 
        <path>{text}</path> 
      </page>
    </pages.restored>

    Implementation Notes

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

    When a page is restored, it is moved from the page archive to the specified location.  If a new page already exists at this location, the restore will fail until this page has been removed or renamed.

    Note that this feature does not restore files attached to the specified page.

    Code Samples

    C# Samples

     

    Curl Samples

     

    PHP Samples

     

    Other Code Samples

     

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by