aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/openapi.yaml10
-rw-r--r--docs/remakes.md7
2 files changed, 14 insertions, 3 deletions
diff --git a/docs/openapi.yaml b/docs/openapi.yaml
index efda5e2..8e6a688 100644
--- a/docs/openapi.yaml
+++ b/docs/openapi.yaml
@@ -1428,6 +1428,16 @@ paths:
description: Octet-stream import only; a duration.
schema:
type: string
+ - name: replayWindow
+ in: query
+ description: 'Octet-stream import only: the retention as JSON, as in the body, e.g. `{"epochs":1,"age":"7d"}`.'
+ schema:
+ type: string
+ - name: archiveRetention
+ in: query
+ description: Octet-stream import only, as `replayWindow`.
+ schema:
+ type: string
requestBody:
content:
application/json:
diff --git a/docs/remakes.md b/docs/remakes.md
index ccccb1a..6f4b740 100644
--- a/docs/remakes.md
+++ b/docs/remakes.md
@@ -173,9 +173,10 @@ curl -X POST localhost:3000/admin/remakes \
--url-query 'rules=[{"from":"","to":""}]'
```
-With `application/octet-stream`, `rules`, `baseHeads`, `settle` and
-`switchDelay` go in the query; for the retention settings use the JSON form, with
-the document base64-encoded:
+With `application/octet-stream`, `rules`, `baseHeads`, `settle`, `switchDelay`,
+`replayWindow` and `archiveRetention` go in the query, the rules and the retentions as
+JSON (`--url-query 'replayWindow={"epochs":2}'`). The JSON form takes the document
+base64-encoded:
```sh
base64 -w0 backup.automerge |