---
title: "Edit Bundle"
method: PATCH
path: "/projects/{projectId}/bundles/{bundleId}"
tags: ["Translations"]
---

# Edit Bundle

`PATCH /projects/{projectId}/bundles/{bundleId}`

## Request

- Base URL: `https://api.crowdin.com/api/v2`
- URL: `https://api.crowdin.com/api/v2/projects/{projectId}/bundles/{bundleId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/crowdin/apis/crowdin-api-v2/docs/projects/:projectId/bundles/:bundleId/patch.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
- `bundleId` integer, required

## Request body

- BundleOperation[]: A JSON Patch document as defined by <a href="https://tools.ietf.org/html/rfc6902#section-3" target="_blank">RFC 6902</a>
  - `op` 'replace' | 'test', required: Patch operation to perform
  - `path` '/name' | '/format' | '/sourcePatterns' | '/ignorePatterns' | '/exportPattern' | '/isMultilingual' | '/includeProjectSourceLanguage' | '/includeInContextPseudoLanguage' | '/labelIds' | '/excludeLabelIds' | '/labelMatchRule' | '/excludeLabelMatchRule', json-pointer, required: A JSON Pointer as defined by <a href="https://tools.ietf.org/html/rfc6901" target="_blank">RFC 6901</a>

## Response `200`

Bundle was successfully updated

- BundleResource: 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` Bundle, required
    - `id` integer
    - `name` string
    - `format` string, nullable
    - `sourcePatterns` string[]
    - `ignorePatterns` string[]
    - `exportPattern` string, nullable
    - `isMultilingual` boolean
    - `includeProjectSourceLanguage` boolean
    - `includeInContextPseudoLanguage` boolean
    - `sourceLanguageExportPattern` string
    - `labelMatchRule` 'all' | 'any', nullable
    - `excludeLabelMatchRule` 'all' | 'any', nullable
    - `labelIds` integer[]
    - `excludeLabelIds` integer[]
    - `languageIds` string[], nullable
    - `webUrl` string
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400`: Invalid Request Body
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Project or bundle 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)
