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