---
title: "Update Target File"
method: PUT
path: "/projects/{projectId}/target-files/{targetFileId}"
tags: ["Target File"]
---

# Update Target File

`PUT /projects/{projectId}/target-files/{targetFileId}`

Updates a target file.

## Request body

- TargetFileRenameRequest
  - `name` string, required — The name of the target file.\ The name should not contain the extension.\ Unsupported characters in the name: `<`, `>`, `:`, `"`, `/`, `\`, `|`, `?`, `*`.

## Response `204`

No Content

## Other responses

- `400` — Error responses: * "invalid": invalid input for the value mentioned in the “name” field on the error response.
- `401` — The user could not be identified.
- `403` — Error codes: * "forbidden": - the authenticated user is not allowed to update the target file.
- `404` — Error codes: * "notFound": the target file could not be found by identifier.
- `409` — Error codes: * "duplicate": a file with the same name already exists.

---

[API](https://skmtc.net/rws/apis/trados-cloud-platform-api.md) · [All operations](https://skmtc.net/rws/apis/trados-cloud-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rws/trados-cloud-platform-api/revisions/d42dac7c28a3/schema)
