summaryrefslogtreecommitdiffstats
path: root/doc/api.md
diff options
context:
space:
mode:
authorSimon Schuster <git@rationality.eu>2020-10-06 22:50:11 +0200
committerFlorian Pritz <bluewind@xinu.at>2020-10-07 14:02:48 +0200
commit4bdbb005a9b214d5355d4f2036d510f898bc8a87 (patch)
tree46cf3c0643189e28b530aafb5a9a68d1913d6e40 /doc/api.md
parent60d497ff685a581cf63b4840af372d8613bd3f81 (diff)
API: Add `minimum-id-length` post parameter
This parameter controls the generated id for files (file/upload) and multipastes (file/create_multipaste). The post parameter has to be a positive integer value >= 2. Changes by Florian Pritz: - minor style and typo fixes - NEWS entry - check expected error reply content in tests Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'doc/api.md')
-rw-r--r--doc/api.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api.md b/doc/api.md
index 1fe475fa8..30dfc77fb 100644
--- a/doc/api.md
+++ b/doc/api.md
@@ -147,6 +147,8 @@ These are the most common errors that can be returned by any API call.
| Version | Endpoint | Note |
| ------- | -------- | ---- |
+| NEXT | file/create_multipaste | Add paramter ''minimum-id-length'' to control the length of generated content id |
+| NEXT | file/upload | Add parameter ''minimum-id-length'' to control the length of generated content id |
| 2.1.1 | file/history | Empty objects (values of `items` and `multipaste_items`) are now always returned as {}. Before they were returned as [] |
| 2.1.1 | file/delete | Empty objects (values of `errors` and `deleted`) are now always returned as {}. Before they were returned as [] |
| 2.1.0 | file/history | Add ''item.thumbnail'' |