---
title: "Add Approval"
method: POST
path: "/projects/{projectId}/approvals"
tags: ["String/Asset Translations"]
---

# Add Approval

`POST /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/post.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

- union
  - object
    - `translationId` integer, required: Translation Identifier. Get via [List String Translations](#operation/api.projects.translations.getMany)
  - object
    - `correctionId` integer, required: Correction Identifier. Get via [List Corrections](#operation/api.projects.corrections.getMany)

## Response `201`

Approval was successfully added

- union
  - TranslationApprovalResource: 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` 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)
  - CorrectionApprovalResource: 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` CorrectionApproval, required
      - `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
      - `correctionId` integer: Correction Identifier
      - `stringId` integer: String Identifier. Get via [List Strings](#operation/api.projects.strings.getMany)
      - `languageId` string: Language Identifier. Get via [Project Target Languages](#operation/api.projects.get)
      - `createdAt` string, date-time: Approval create date

## Other responses

- `400`: Invalid Request Parameters
- `401`: Unauthorized
- `402`: Payment required
- `403`: Forbidden
- `404`: Project or translation with specified id was not found
- `405`: Method Not Allowed
- `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)
