From 5a94df2221664f88fd3c8fc07e068fc2ce52118d Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 4 Jul 2017 11:59:23 +0200 Subject: API: Fix return type of empty values in file/delete Signed-off-by: Florian Pritz --- doc/api.md | 1 + doc/api/file.md | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/api.md b/doc/api.md index cbdc5bbb9..aee738c88 100644 --- a/doc/api.md +++ b/doc/api.md @@ -148,6 +148,7 @@ These are the most common errors that can be returned by any API call. | Version | Endpoint | Note | | ------- | -------- | ---- | | 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'' | | 2.0.0 | file/history | Add ''multipaste_item.date'' | | 2.0.0 | file/history | Remove private fields in response | diff --git a/doc/api/file.md b/doc/api/file.md index c461caf01..7d95274a3 100644 --- a/doc/api/file.md +++ b/doc/api/file.md @@ -230,7 +230,7 @@ Example: > curl -s $base/file/delete -F apikey=$apikey -F "ids[1]=uu28" | json_pp { "data" : { - "errors" : [], + "errors" : {}, "total_count" : 1, "deleted" : { "uu28" : { @@ -243,6 +243,10 @@ Example: } ``` +| Version | Change | +| ------- | ------ | +| 2.1.1 | Empty objects (values of `errors` and `deleted`) are now always returned as {}. Before they were returned as [] | + ## file/create_multipaste Required access level: `basic` -- cgit v1.2.3-24-g4f1b