From 2341d0980771b4c3d7e2e71a686365992d25e00a Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Wed, 16 Nov 2016 10:35:38 +0100 Subject: [PATCH] Add undocumented API function restoreRevision to doc This commit is dedicated to Schoumi. Thx for supporting me on Tipeee :-) --- doc/api/http_api.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/api/http_api.md b/doc/api/http_api.md index 8d1b64f1..93a9b399 100644 --- a/doc/api/http_api.md +++ b/doc/api/http_api.md @@ -363,6 +363,15 @@ returns an object of diffs from 2 points in a pad * `{"code":0,"message":"ok","data":{"html":"Welcome to Etherpad!

This pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents!

Get involved with Etherpad at http://etherpad.org
aw

","authors":["a.HKIv23mEbachFYfH",""]}}` * `{"code":4,"message":"no or wrong API Key","data":null}` +#### restoreRevision(padId, rev) + * API >= 1.2.11 + +Restores revision from past as new changeset + +*Example returns:* + * {code:0, message:"ok", data:null} + * {code: 1, message:"padID does not exist", data: null} + ### Chat #### getChatHistory(padID, [start, end]) * API >= 1.2.7