From 15d04ada65714fa171e8a5ab9e32ab90131e041b Mon Sep 17 00:00:00 2001 From: Jarrod Swift Date: Wed, 30 Jun 2021 18:05:26 +0930 Subject: [PATCH 1/2] According to API response, the maximum size is actually 50 --- src/BigCommerce/Api/Redirects/RedirectsApi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BigCommerce/Api/Redirects/RedirectsApi.php b/src/BigCommerce/Api/Redirects/RedirectsApi.php index 5decefc5..f091e479 100644 --- a/src/BigCommerce/Api/Redirects/RedirectsApi.php +++ b/src/BigCommerce/Api/Redirects/RedirectsApi.php @@ -49,7 +49,7 @@ class RedirectsApi extends V3ApiBase protected function maxBatchSize(): int { - return 100; + return 50; } public function multipleResourceUrl(): string From 19e36728f3adf7a86bae03577f3847b8699710f9 Mon Sep 17 00:00:00 2001 From: Jarrod Swift Date: Wed, 30 Jun 2021 18:07:01 +0930 Subject: [PATCH 2/2] Update release notes with fix details --- RELEASE_NOTES.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index bde42c1b..462e36f3 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,4 +1,5 @@ +### Fixes -### New Features - - - Add `setCustomUrl()` to **Category**, **Brand**, and **Product** for simpler custom url setup +- Fixes `The request payload is too large. The maximum items allowed in the array is 50` + error on upsert redirects endpoint +