---
title: "Approval Batch Operations"
method: PATCH
path: "/projects/{projectId}/approvals"
tags: ["String/Asset Translations"]
---

# Approval Batch Operations

`PATCH /projects/{projectId}/approvals`

## Request

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

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

## Path parameters

- `projectId` integer, required

## Request body

- ApprovalMassOperation[]: A JSON Patch document as defined by <a href="https://tools.ietf.org/html/rfc6902#section-3" target="_blank">RFC 6902</a>
  - `op` 'remove' | 'add', required: Patch operation to perform

## Response `200`

Approvals were successfully updated

- TranslationApprovalUpdatedCollectionResource: 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` TranslationApprovalResource[], required
    - `data` union, required
      - StringApproval: Base approval model with common fields
        - `id` integer: Approval Identifier. Get via [List Translation Approvals](#operation/api.projects.approvals.getMany)
        - `user` object: User
          - `id` integer
          - `username` string
          - `fullName` string
          - `avatarUrl` string
        - `translationId` integer: Translation Identifier
        - `languageId` string: Language Identifier. Get via [Project Target Languages](#operation/api.projects.get)
        - `createdAt` string, date-time: Approval create date
        - `stringId` integer: String Identifier. Get via [List Strings](#operation/api.projects.strings.getMany)
      - AssetApproval: Base approval model with common fields
        - `id` integer: Approval Identifier. Get via [List Translation Approvals](#operation/api.projects.approvals.getMany)
        - `user` object: User
          - `id` integer
          - `username` string
          - `fullName` string
          - `avatarUrl` string
        - `translationId` integer: Translation Identifier
        - `languageId` string: Language Identifier. Get via [Project Target Languages](#operation/api.projects.get)
        - `createdAt` string, date-time: Approval create date
        - `fileId` integer: File Identifier. Get via [List Files](#operation/api.projects.files.getMany)

## Other responses

- `400`: Invalid Request Parameters
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Project or string with specified id was not found
- `405`: Method Not Allowed
- `409`: Conflict
- `503`: Service Unavailable

---

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