---
title: "BulkOperation"
description: "BulkOperation"
url: "https://www.contentstack.com/docs/developers/sdks/content-management-sdk/java/reference/bulkoperation"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-09-21"
---

# BulkOperation

## BulkOperation

Use the BulkOperation class to perform actions—such as publishing, unpublishing, deleting, or updating workflows—on multiple entries and assets in a single API request.

## create

The create method creates a new release in the stack.

```
Example:
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
Release release = contentstack.stack().releases();
Call<ResponseBody> response = release.create(requestBody).execute();
if (response.isSuccessful()) {
    System.out.println("Release created successfully.");
}
```

The requestBody to create a release.

## unpublish

The unpublish method removes multiple entries and assets from specific environments and locales.

```
Example:
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
BulkOperation bulkOperation = contentstack.stack().bulkOperation();

Call<ResponseBody> response = bulkOperation.unpublish(requestBody).execute();
if (response.isSuccessful()) {
    System.out.println("Unpublished successfully");
}
```

Data to unpublish multiple items

## delete

The delete method permanently deletes multiple entries or assets from your stack.

```
Example:
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
BulkOperation bulkOperation = contentstack.stack().bulkOperation();

Call<ResponseBody> response = bulkOperation.delete(requestBody).execute();
if (response.isSuccessful()) {
    System.out.println("Deleted successfully");
}
```

Data to delete multiple items from stack

## updateWorkflow

The updateWorkflow method updates the workflow stage for multiple entries in bulk.

```
Example:
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
BulkOperation bulkOperation = contentstack.stack().bulkOperation();

Call<ResponseBody> response = bulkOperation.updateWorkflow(requestBody).execute();
if (response.isSuccessful()) {
    System.out.println("Workflow updated");
}
```

The requestBody to update workflow

## addReleaseItems

The addReleaseItems method adds multiple entries or assets to a release in a single request.

```
Example:
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
BulkOperation bulkOperation = contentstack.stack().bulkOperation();

Call<ResponseBody> response = bulkOperation.addReleaseItems(requestBody).execute();
if (response.isSuccessful()) {
    System.out.println("Items added to release");
}
```

Items to be added to the release

## updateReleaseItems

The updateReleaseItems method updates all items in a release to their latest saved versions.

```
Example:
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
BulkOperation bulkOperation = contentstack.stack().bulkOperation();

Call<ResponseBody> response = bulkOperation.updateReleaseItems(requestBody).execute();
if (response.isSuccessful()) {
    System.out.println("Release items updated");
}
```

Configuration to update release items

## jobStatus

The jobStatus method allows you to check the status of a bulk job.

```
Example:
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
BulkOperation bulkOperation = contentstack.stack().bulkOperation();

Call<ResponseBody> response = bulkOperation.jobStatus("jobId").execute();
if (response.isSuccessful()) {
    System.out.println("Job status retrieved");
}
```

UID of the bulk job

The bulk operation version (2.0)

## BulkOperation | Java Management SDK | Contentstack

BulkOperation lets you publish, unpublish, delete, or update workflows on multiple entries and assets in a single request in the Java Management SDK.