acl->checkScope(Import::ENTITY_TYPE)) { throw new Forbidden(); } $id = $request->getRouteParam('id'); if (!$id) { throw new BadRequest(); } $attachmentId = $this->service->exportErrors($id); return ResponseComposer::json(['attachmentId' => $attachmentId]); } }