I think this is duplicate of https://github.com/keboola/storage-api-php-client/blob/06c05cf1198a3d8aa768a861f7453d79fc63b099/src/Keboola/StorageApi/Client.php#L1196