src/Yandex/Metrica/Management/OperationsClient.php
public function updateOperation($id, $counterId, Models\Operation $operation)
    {
        $resource = 'counter/' . $counterId . '/operation/' . $id;
        $response = $this->sendPutRequest($resource, ["operation" => $operation->toArray()]);
        $operationsResponse = new Models\UpdateOperationResponse($response);
        return $operationsResponse->getOperation();
    }
public function updateOperation($id, $counterId, Models\Operation $operation)
    {
        $resource = 'counter/' . $counterId . '/operation/' . $id;
        $response = $this->sendPutRequest($resource, ["operation" => $operation->toArray()]);
        $operationsResponse = new Models\UpdateOperationResponse($response);
        return $operationsResponse->getOperation();
    }
public function updateOperation ( $ id , $ counterId , Models \ Operation $ operation ) { $ resource = 'counter/' . $ counterId . '/operation/' . $ id ; $ response = $ this -> sendPutRequest ( $ resource , [ "operation" => $ operation -> toArray ( ) ] ) ; $ operationsResponse = new Models \ UpdateOperationResponse ( $ response ) ; return $ operationsResponse -> getOperation ( ) ; }
Update counter operation

@see http://api.yandex.ru/metrika/doc/beta/management/operations/editoperation.xml

@param int $id
@param int $counterId
@param Models\Operation $operation
@return Models\Operation
Update counter operation