From b5a3d77b9e2890fd3213ac5a8a9fe774da03b5bd Mon Sep 17 00:00:00 2001 From: OMpawar-21 Date: Wed, 25 Feb 2026 14:20:19 +0530 Subject: [PATCH 1/2] Add AddQueryResource alternatives for bulk unpublish query params in BulkUnpublishService.cs. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description In BulkUnpublishService.cs, two comment-only lines were added to document an alternative way of sending the bulk unpublish options: skip_workflow_stage_check – A commented call AddQueryResource("skip_workflow_stage_check", "true") was added next to the existing Headers["skip_workflow_stage_check"] = "true" assignment. approvals – A commented call AddQueryResource("approvals", "true") was added next to the existing Headers["approvals"] = "true" assignment. --- .../Contentstack.Management.Core.Tests.csproj | 5 ----- .../Services/Stack/BulkOperation/BulkUnpublishService.cs | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Contentstack.Management.Core.Tests/Contentstack.Management.Core.Tests.csproj b/Contentstack.Management.Core.Tests/Contentstack.Management.Core.Tests.csproj index f8be953..076a59c 100644 --- a/Contentstack.Management.Core.Tests/Contentstack.Management.Core.Tests.csproj +++ b/Contentstack.Management.Core.Tests/Contentstack.Management.Core.Tests.csproj @@ -35,11 +35,6 @@ - - - PreserveNewest - - diff --git a/Contentstack.Management.Core/Services/Stack/BulkOperation/BulkUnpublishService.cs b/Contentstack.Management.Core/Services/Stack/BulkOperation/BulkUnpublishService.cs index 8d9689d..faddc5b 100644 --- a/Contentstack.Management.Core/Services/Stack/BulkOperation/BulkUnpublishService.cs +++ b/Contentstack.Management.Core/Services/Stack/BulkOperation/BulkUnpublishService.cs @@ -39,11 +39,13 @@ public BulkUnpublishService(JsonSerializer serializer, Contentstack.Management.C if (_skipWorkflowStage) { Headers["skip_workflow_stage_check"] = "true"; + // AddQueryResource("skip_workflow_stage_check", "true"); } if (_approvals) { Headers["approvals"] = "true"; + // AddQueryResource("approvals", "true"); } if (_isNested) From a55088a2f528ad9a7aba081ec5b530a86eeeb70c Mon Sep 17 00:00:00 2001 From: OMpawar-21 Date: Wed, 25 Feb 2026 14:24:54 +0530 Subject: [PATCH 2/2] =?UTF-8?q?Add=20AddQueryResource=20alternatives=20for?= =?UTF-8?q?=20bulk=20unpublish=20query=20params=20in=20Bul=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/Stack/BulkOperation/BulkUnpublishService.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Contentstack.Management.Core/Services/Stack/BulkOperation/BulkUnpublishService.cs b/Contentstack.Management.Core/Services/Stack/BulkOperation/BulkUnpublishService.cs index faddc5b..0993409 100644 --- a/Contentstack.Management.Core/Services/Stack/BulkOperation/BulkUnpublishService.cs +++ b/Contentstack.Management.Core/Services/Stack/BulkOperation/BulkUnpublishService.cs @@ -38,14 +38,12 @@ public BulkUnpublishService(JsonSerializer serializer, Contentstack.Management.C // Set headers based on parameters if (_skipWorkflowStage) { - Headers["skip_workflow_stage_check"] = "true"; - // AddQueryResource("skip_workflow_stage_check", "true"); + AddQueryResource("skip_workflow_stage_check", "true"); } if (_approvals) { - Headers["approvals"] = "true"; - // AddQueryResource("approvals", "true"); + AddQueryResource("approvals", "true"); } if (_isNested)