src/Yandex/Metrica/Management/GrantsClient.php
public function updateGrant($counterId, $userLogin, Models\Grant $grant)
    {
        $resource = 'counter/' . $counterId . '/grant/' . $userLogin;
        $response = $this->sendPutRequest($resource, ["grant" => $grant->toArray()]);
        $grantResponse = new Models\UpdateGrantResponse($response);
        return $grantResponse->getGrant();
    }
public function updateGrant($counterId, $userLogin, Models\Grant $grant)
    {
        $resource = 'counter/' . $counterId . '/grant/' . $userLogin;
        $response = $this->sendPutRequest($resource, ["grant" => $grant->toArray()]);
        $grantResponse = new Models\UpdateGrantResponse($response);
        return $grantResponse->getGrant();
    }
public function updateGrant ( $ counterId , $ userLogin , Models \ Grant $ grant ) { $ resource = 'counter/' . $ counterId . '/grant/' . $ userLogin ; $ response = $ this -> sendPutRequest ( $ resource , [ "grant" => $ grant -> toArray ( ) ] ) ; $ grantResponse = new Models \ UpdateGrantResponse ( $ response ) ; return $ grantResponse -> getGrant ( ) ; }
Update counter grant

@see http://api.yandex.ru/metrika/doc/beta/management/grants/editgrantold.xml

@param int $counterId
@param string $userLogin
@param Models\Grant $grant
@return Models\Grant
Update counter grant