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

# Update Source Files

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

Updates multiple source files. If any of the files fails to be updated, an error will be returned for each file.

## Request body

- SourceFilesUpdateRequest
  - `files` SourceFileUpdateRequest[], required
    - `id` string, required — The source file identifier.
    - `name` string, required — The source file name.\ The name should not contain the extension.\ Unsupported characters in the name: `<`, `>`, `:`, `"`, `/`, `\`, `|`, `?`, `*`.
    - `updateTargetFilesName` boolean — Option for renaming the target files too.

## 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 source file.
- `404` — Error codes: * "notFound": the project 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)
