---
title: "Update Source File"
method: PUT
path: "/projects/{projectId}/source-files/{sourceFileId}"
tags: ["Source File"]
---

# Update Source File

`PUT /projects/{projectId}/source-files/{sourceFileId}`

Updates a source file.

## Request body

- SourceFileRenameRequest
  - `name` string, required — The name of the source file.\ The name should not contain the extension.\ Unsupported characters in the name: `<`, `>`, `:`, `"`, `/`, `\`, `|`, `?`, `*`.
  - `updateTargetFilesName` boolean — Option for renaming also the target files.

## 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 project or the source 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)
