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

# Adds target file to the project as added by PM.

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

Adds file to the project as added by PM. The file have to be uploaded beforehand (see "POST /v2/projects/{projectId}/files/upload" operation).

## Path parameters

- `projectId` string, required

## Request body

- TargetFileDto
  - `externalProjectId` string
  - `externalJobId` string
  - `fileId` 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/0c24935a3319/schema)
