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

# Branch

## Branch

Branches allow you to isolate and easily manage your “in-progress” work from your stable, live work in the production environment. It helps multiple development teams to work in parallel in a more collaborative, organized, and structured manner without impacting each other.

## create

The "Create a branch" request creates a new branch in a particular stack of your organization.

```
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
Branch branch = contentstack.stack().branch();
Call<responsebody> response = branch.create("body");
if (response.isSuccessful) { 
    System.out.println("Response" + response)
}
```

The request body.

## fetch

The "Get a single branch" request returns information about a specific branch.

```
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
Branch branch = contentstack.stack().branch();
Call<ResponseBody> response = branch.fetch();
if (response.isSuccessful) { 
    System.out.println("Response" + response)
}
```

## find

The "Get all branches" request returns comprehensive information about all the branches available in a particular stack in your account.

```
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
Branch branch = contentstack.stack().branch();
Call<ResponseBody> response = branch.find();
if (response.isSuccessful) { 
    System.out.println("Response" + response)
}
```

## addParam

Sets header for the request.

```
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
Branch branch = contentstack.stack().branch();
branch.addParam("key", value);
```

Query parameter key for the request.

Query parameter value for the request.

## addHeader

Sets header key for the request.

```
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
Branch branch = contentstack.stack().branch();
branch.addHeader("key", value);
```

Header key for the request.

Header value for the request.

## removeParam

Set header for the request.

```
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
Branch branch = contentstack.stack().branch();
branch.removeParam("key");
```

Removes query parameters using the key of the request.

## delete

The "Get assets and folders of a parent folder" retrieves details of both assets and asset subfolders within a specific parent asset folder.

```
import contentstack;
Contentstack contentstack = new Contentstack.Builder().build();
Branch branch = contentstack.stack().branch();
Call<ResponseBody> response = branch.delete().execute();
if (response.isSuccessful){
    System.out.println("Response" + response)
}
```

## Branch | Java Management SDK | Contentstack

Branch lets you isolate in-progress work from stable production content so teams can collaborate in parallel in the Java Management SDK.