From 92aa26806b22d9e3f59413dfcda760f987b31bff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Bracini=CC=81k?= Date: Thu, 23 Apr 2020 09:48:28 +0200 Subject: [PATCH] Fix PUT parameters --- src/Keboola/StorageApi/Client.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Keboola/StorageApi/Client.php b/src/Keboola/StorageApi/Client.php index d62f2779a..ddddf5747 100644 --- a/src/Keboola/StorageApi/Client.php +++ b/src/Keboola/StorageApi/Client.php @@ -697,17 +697,13 @@ public function createTableSnapshot($tableId, $snapshotDescription = null) */ public function updateTable($tableId, $options) { - $url = "storage/tables/" . $tableId; - $allowedOptions = [ 'displayName', ]; $filteredOptions = array_intersect_key($options, array_flip($allowedOptions)); - $url .= '?' . http_build_query($filteredOptions); - - $result = $this->apiPut($url); + $result = $this->apiPut('storage/tables/' . $tableId, $filteredOptions); $this->log("Table {$tableId} updated"); return $result['id']; }