---
title: "Update Source File Properties"
method: PUT
path: "/tasks/{taskId}/source-files/{sourceFileId}"
tags: ["Source File"]
---

# Update Source File Properties

`PUT /tasks/{taskId}/source-files/{sourceFileId}`

Updates the properties of the source file.


The value of `fileTypeSettingsId` should be one of the identifiers listed by the [List File Type Settings](#/operations/ListFileTypeSettings)  endpoint called with an identifier of a File Processing Configuration that exists on the project. The list of File Processing Configurations from a project can be retrieved by using the [List File Processing Configurations](#/operations/ListFileProcessingConfigurations) endpoint.

## Headers

- `Authorization` string, required
- `X-LC-Tenant` string, required

## Request body

- SourceFilePropertiesUpdateRequest
  - `fileRole` 'translatable' | 'reference' — The file role.
  - `fileTypeSettingsId` string — The file type settings identifier.

## Response `204`

No Content

## Other responses

- `400` — Error responses: * “invalid”: invalid input on update source file properties.
- `401` — The user could not be identified.
- `403` — Error codes: * "forbidden": the authenticated user is not allowed to update the resource.
- `404` — Error codes: * "notFound": - the specified task or the source file was not found.
- `409` — Error codes: * "noOwner": the task has no owner. * "differentOwner": the authenticated user is not the owner of the task. * "taskCompleted": updating the source file properties is not allowed when the task is completed.

---

[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)
