BulkWorkflowUpdateBody
BulkWorkflowUpdateBody
BulkWorkflowUpdateBody lists the entries and the new workflow details of a bulk workflow update. Pass it to the Update method of BulkOperation.
When to Use This Class: Use this class to move many entries to another workflow stage, or to change their assignees, due date, or comment, in one request.
Conceptual Role: Acts as the JSON request body of the /bulk/workflow request.
Returns: BulkWorkflowUpdateBody. The entries and workflow details of a bulk update.
Properties
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| Entries | List<BulkWorkflowEntry>? | No | null | Entries to update. Serialized as entries. See BulkWorkflowEntry. |
| Workflow | BulkWorkflowStage? | No | null | New workflow details. Serialized as workflow. See BulkWorkflowStage. |
Class-Level Notes
Serialization.
- The SDK serializes the model with System.Text.Json and leaves out every property that is null. The SDK does not check the values.
Entries must share a stage.
- The Content Management API (CMA) reference changes the stage of many entries only when all of them sit at the same workflow stage of the same workflow. See the Update workflow details in bulk request.
Method Index
BulkWorkflowUpdateBody has no methods. Set its properties and pass it as shown in the Class-Level Snippet below.
Class-Level Snippet
The snippet below moves one entry to a workflow stage and assigns a user and a role.
using System;
using System.Collections.Generic;
using Contentstack.Management.Core;
using Contentstack.Management.Core.Exceptions;
using Contentstack.Management.Core.Models;
ContentstackClient client = new ContentstackClient("<AUTHTOKEN>");
BulkWorkflowUpdateBody body = new BulkWorkflowUpdateBody()
{
Entries = new List<BulkWorkflowEntry>
{
new BulkWorkflowEntry() { Uid = "<ENTRY_UID>", ContentType = "<CONTENT_TYPE_UID>", Locale = "<LOCALE_CODE>" }
},
Workflow = new BulkWorkflowStage()
{
Uid = "<WORKFLOW_STAGE_UID>",
Comment = "Ready for legal review",
DueDate = "Thu Dec 10 2026",
Notify = true,
AssignedTo = new List<BulkWorkflowUser>
{
new BulkWorkflowUser() { Uid = "<USER_UID>", Name = "Alex Morgan", Email = "<EMAIL>" }
},
AssignedByRoles = new List<BulkWorkflowRole>
{
new BulkWorkflowRole() { Uid = "<ROLE_UID>", Name = "Legal Reviewer" }
}
}
};
try
{
ContentstackResponse response = client.Stack("<API_KEY>").BulkOperation().Update(body);
Console.WriteLine(response.OpenJsonObjectResponse().ToJsonString());
}
catch (ContentstackErrorException e)
{
// Thrown when the API rejects the request
Console.WriteLine($"Request failed: {(int)e.StatusCode} {e.ErrorCode} {e.ErrorMessage}");
}