src/Common/RestApiClient.php
public function put($path, $payload = [], $withAuthorization = true)
    {
        $options = [
            'json' => $payload,
        ];

        return $this->send('PUT', $path, $options, $withAuthorization);
    }
public function put($path, $payload = [], $withAuthorization = true)
    {
        $options = [
            'json' => $payload,
        ];

        return $this->send('PUT', $path, $options, $withAuthorization);
    }
public function put ( $ path , $ payload = [ ] , $ withAuthorization = true ) { $ options = [ 'json' => $ payload , ] ; return $ this -> send ( 'PUT' , $ path , $ options , $ withAuthorization ) ; }
Send a PUT request to the given URL.

@param string $path - URL to make request to (relative to base URL)
@param array $payload - Body of the PUT request
@param bool $withAuthorization - Should this request be authorized?
@return array
Send a PUT request to the given URL .