From 5409cdaa3ff84c9ee738081947599832bacacea9 Mon Sep 17 00:00:00 2001 From: s1341 Date: Mon, 18 Nov 2013 14:36:45 +0200 Subject: [PATCH] add some documentation for move/copy --- doc/api/http_api.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/doc/api/http_api.md b/doc/api/http_api.md index 722840d1c..19d2e7f48 100644 --- a/doc/api/http_api.md +++ b/doc/api/http_api.md @@ -425,6 +425,24 @@ returns the list of users that are currently editing this pad deletes a pad +*Example returns:* + * `{code: 0, message:"ok", data: null}` + * `{code: 1, message:"padID does not exist", data: null}` + +#### copyPad(sourceID, destinationID[, force=false]) + * API >= 1.2.8 + +copies a pad with full history and chat. If force is true and the destination pad exists, it will be overwritten. + +*Example returns:* + * `{code: 0, message:"ok", data: null}` + * `{code: 1, message:"padID does not exist", data: null}` + +#### movePad(sourceID, destinationID[, force=false]) + * API >= 1.2.8 + +moves a pad. If force is true and the destination pad exists, it will be overwritten. + *Example returns:* * `{code: 0, message:"ok", data: null}` * `{code: 1, message:"padID does not exist", data: null}`