src/Api/HttpApi.php
protected function httpPatch(string $path, $body, array $requestHeaders = []): ResponseInterface
    {
        $requestHeaders['Content-Type'] = 'application/json';

        return $response = $this->httpClient->sendRequest(
            $this->requestBuilder->create('PATCH', $path, $requestHeaders, json_encode($body))
        );
    }
protected function httpPatch(string $path, $body, array $requestHeaders = []): ResponseInterface
    {
        $requestHeaders['Content-Type'] = 'application/json';

        return $response = $this->httpClient->sendRequest(
            $this->requestBuilder->create('PATCH', $path, $requestHeaders, json_encode($body))
        );
    }
protected function httpPatch ( string $ path , $ body , array $ requestHeaders = [ ] ) : ResponseInterface { $ requestHeaders [ 'Content-Type' ] = 'application/json' ; return $ response = $ this -> httpClient -> sendRequest ( $ this -> requestBuilder -> create ( 'PATCH' , $ path , $ requestHeaders , json_encode ( $ body ) ) ) ; }
Send a PATCH request with json encoded data.

@param string       $path           Request path
@param array|string $body           Request body
@param array        $requestHeaders Request headers

@return ResponseInterface
Send a PATCH request with json encoded data .