---
title: "Adds files to the project as added by PM."
method: PUT
path: "/v2/projects/{projectId}/files/add"
tags: ["Projects (Smart)(v2)"]
---

# Adds files to the project as added by PM.

`PUT /v2/projects/{projectId}/files/add`

Adds files to the project as added by PM. The files have to be uploaded beforehand (see "POST /v2/projects/{projectId}/files/upload" operation). The following properties can be specified for each file:<ul><li>category (required, 400 Bad Request is returned otherwise)</li><li>languageIds – when the file category depends on a list of languages</li><li>languageCombinationIds – when the file category depends on a list of language combinations</li></ul>

## Path parameters

- `projectId` string, required

## Request body

- FileCategorizationsDto
  - `files` FileCategorizationDto[]
    - `category` string
    - `languageIds` integer[]
    - `languageCombinationIds` LanguageCombinationDto[]
      - `sourceLanguageId` integer
      - `targetLanguageId` integer
    - `fileId` string
  - `duplicateFileAction` string

## Response `204`

Success

---

[API](https://skmtc.dev/xtrf/apis/xtrf-home-portal-api.md) · [All operations](https://skmtc.dev/xtrf/apis/xtrf-home-portal-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xtrf/xtrf-home-portal-api/revisions/89f48e08f50f/schema)
