diff --git a/src/Core/Upgrade/UpgradeApiResourceVisitor.php b/src/Core/Upgrade/UpgradeApiResourceVisitor.php index ead9a207f01..94e4ebc150e 100644 --- a/src/Core/Upgrade/UpgradeApiResourceVisitor.php +++ b/src/Core/Upgrade/UpgradeApiResourceVisitor.php @@ -443,6 +443,9 @@ private function legacyOperationsToOperations($legacyOperations, bool $isCollect $method = $operation['method'] ?? strtoupper($operationName); unset($operation['method']); + if (!\in_array($operationName, ['get', 'post', 'put', 'patch', 'delete'], true)) { + $operation['name'] = $operationName; + } $operations[] = $this->createOperation($this->getOperationNamespace($method, $isCollection), $operation); }