src/Client.php
/**
     * Starts an PUT request
     *
     * @param string $node The requested node
     * @param mixed $data The body
     * @param string $responseClass The response class
     *
     * @return mixed The mapped response object
     *
     * @throws QuotaExceededException If the maximum number of calls per second exceeded
     * @throws Exception If the response cannot be parsed
     */
Starts an PUT request
@param string $node The requested node
@param mixed $data The body
@param string $responseClass The response class

@return mixed The mapped response object

@throws QuotaExceededException If the maximum number of calls per second exceeded
@throws Exception If the response cannot be parsed
Starts an PUT request @param string $node The requested node @param mixed $data The body @param string $responseClass The response class @return mixed The mapped response object @throws QuotaExceededException If the maximum number of calls per second exceeded @throws Exception If the response cannot be parsed
protected function requestPUT(
        $node,
        $data,
        $responseClass
    ) {
        return $this->internalRequest($responseClass, function () use ($data, $node) {
            $field = is_string($data) ? 'body' : 'json';
            return $this->createRequest('PUT', $node, [
                $field => $data,
                'headers' => [
                    'Content-Type' => 'application/json',
                ]
            ]);
        });
    }
protected function requestPUT ( $ node , $ data , $ responseClass ) { return $ this -> internalRequest ( $ responseClass , function ( ) use ( $ data , $ node ) { $ field = is_string ( $ data ) ? 'body' : 'json' ; return $ this -> createRequest ( 'PUT' , $ node , [ $ field => $ data , 'headers' => [ 'Content-Type' => 'application/json' , ] ] ) ; } ) ; }
Starts an PUT request
 @param string $node The requested node
 @param mixed $data The body
 @param string $responseClass The response class
Starts an PUT request @param string $node The requested node @param mixed $data The body @param string $responseClass The response class