summaryrefslogtreecommitdiffstats
path: root/application/controllers/api
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/api')
-rw-r--r--application/controllers/api/v2/file.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/application/controllers/api/v2/file.php b/application/controllers/api/v2/file.php
index c3a42388b..15a43fc45 100644
--- a/application/controllers/api/v2/file.php
+++ b/application/controllers/api/v2/file.php
@@ -75,7 +75,11 @@ class file extends \controllers\api\api_controller {
{
$this->muser->require_access("apikey");
$ids = $this->input->post_array("ids");
- return \service\files::delete($ids);
+ $ret = \service\files::delete($ids);
+
+ $ret = ensure_json_keys_contain_objects($ret, array("errors", "deleted"));
+
+ return $ret;
}
public function create_multipaste()