diff --git a/core/Controller/TextProcessingApiController.php b/core/Controller/TextProcessingApiController.php index 6ba98f99f51d0..8fac04d3477cd 100644 --- a/core/Controller/TextProcessingApiController.php +++ b/core/Controller/TextProcessingApiController.php @@ -112,7 +112,7 @@ public function taskTypes(): DataResponse { * 400: Scheduling task is not possible * 412: Scheduling task is not possible */ - #[PublicPage] + #[NoAdminRequired] #[UserRateLimit(limit: 20, period: 120)] #[AnonRateLimit(limit: 5, period: 120)] #[ApiRoute(verb: 'POST', url: '/schedule', root: '/textprocessing')] @@ -152,7 +152,7 @@ public function schedule(string $input, string $type, string $appId, string $ide * 200: Task returned * 404: Task not found */ - #[PublicPage] + #[NoAdminRequired] #[ApiRoute(verb: 'GET', url: '/task/{id}', root: '/textprocessing')] public function getTask(int $id): DataResponse { try { diff --git a/core/openapi.json b/core/openapi.json index a892acf921232..5bc5eae909132 100644 --- a/core/openapi.json +++ b/core/openapi.json @@ -3451,7 +3451,6 @@ "text_processing_api" ], "security": [ - {}, { "bearer_auth": [] }, @@ -3671,7 +3670,6 @@ "text_processing_api" ], "security": [ - {}, { "bearer_auth": [] },