Was this page helpful?

POST:pages/{pageid}/revert

    Overview

    public. Revert page to an earlier revision

    Uri Parameters
    NameTypeDescription
    pageidstringeither an integer page ID, "home", or "=" followed by a double uri-encoded page title
    Query Parameters
    NameTypeDescription
    authenticatebool?Force authentication for request (default: false)
    fromrevisionintRevision number of page that will become the new head revision
    redirectsint?If zero, do not follow page redirects.
    Return Codes
    NameValueDescription
    BadRequest400Invalid input parameter or request body
    Forbidden403Update access to the page is required
    NotFound404Requested page could not be found
    Ok200The request completed successfully

    Message Format

    None

    Implementation Notes

    Setting Fromrevision=1 reverts to the earliest revision, 2 reverts to the next earliest revision, and so on.  Similarly, Fromrevision=-1 reverts to the revision prior to the current, -2 reverts to the revision two prior to the current, and so on. 

    Use GET:pages/{pageid}/revisions to retrieve page revision information.

    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