From b85a0edc92f2894ed1674aa6216206a0e8fb1fcb Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Mon, 6 May 2024 11:24:35 +0200 Subject: fix: Update autoloaders Signed-off-by: Marcel Klehr --- core/Controller/TaskProcessingApiController.php | 1 + core/openapi.json | 38 +++++++++++++++++++++++++ 2 files changed, 39 insertions(+) (limited to 'core') diff --git a/core/Controller/TaskProcessingApiController.php b/core/Controller/TaskProcessingApiController.php index da23b343cf0..e42e03424b8 100644 --- a/core/Controller/TaskProcessingApiController.php +++ b/core/Controller/TaskProcessingApiController.php @@ -108,6 +108,7 @@ class TaskProcessingApiController extends \OCP\AppFramework\OCSController { * 200: Task scheduled successfully * 400: Scheduling task is not possible * 412: Scheduling task is not possible + * 401: Cannot schedule task because it references files in its input that the user doesn't have access to */ #[PublicPage] #[UserRateLimit(limit: 20, period: 120)] diff --git a/core/openapi.json b/core/openapi.json index d89aaeca927..ef2378d4e4e 100644 --- a/core/openapi.json +++ b/core/openapi.json @@ -3607,6 +3607,44 @@ } } } + }, + "401": { + "description": "Cannot schedule task because it references files in its input that the user doesn't have access to", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "ocs" + ], + "properties": { + "ocs": { + "type": "object", + "required": [ + "meta", + "data" + ], + "properties": { + "meta": { + "$ref": "#/components/schemas/OCSMeta" + }, + "data": { + "type": "object", + "required": [ + "message" + ], + "properties": { + "message": { + "type": "string" + } + } + } + } + } + } + } + } + } } } } -- cgit v1.2.3