---
title: "Clone Branch"
method: POST
path: "/projects/{projectId}/branches/{branchId}/clones"
tags: ["Branches"]
---

# Clone Branch

`POST /projects/{projectId}/branches/{branchId}/clones`

## Request

- Base URL: `https://api.crowdin.com/api/v2`
- URL: `https://api.crowdin.com/api/v2/projects/{projectId}/branches/{branchId}/clones`
- Auth: none declared
- TypeScript: <https://skmtc.dev/crowdin/apis/crowdin-api-v2/docs/projects/:projectId/branches/:branchId/clones/post.ts> (a function with typed inputs; its response is checked against the schema)

**Required scopes:** `project.source.file` (Read and Write).

## Path parameters

- `projectId` integer, required
- `branchId` integer, required

## Request body

- BranchCreateForm
  - `name` string, required: Branch name __Note:__ Can't contain `\ / : * ? " < > |` symbols
  - `title` string: Use to provide more details for translators. Title is available in UI only
  - `isProtected` boolean: If true, the branch is protected from some actions (for example, delete or force-push operations may be restricted)

## Response `202`

Branch cloning successfully launched

- CloneBranchResource: Base schema of resource container. Container is a wrapper object that contains payload in required `data` property and provides space for adding any other metadata.
  - `data` CloneBranchResponseModel, required
    - `identifier` string
    - `status` 'created' | 'in_progress' | 'finished' | 'failed'
    - `progress` integer: in percentages
    - `attributes` object
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `startedAt` string, date-time
    - `finishedAt` string, date-time

## Other responses

- `400`: Invalid Request Parameters
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Project or branch with specified id was not found
- `405`: Method Not Allowed

---

[API](https://skmtc.dev/crowdin/apis/crowdin-api-v2.md) - [All operations](https://skmtc.dev/crowdin/apis/crowdin-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/crowdin/apis/crowdin-api-v2/revisions/27aae7751699?raw)
