---
title: "Cancel Project File"
method: PUT
path: "/projects/{projectId}/files/{fileId}/cancel"
tags: ["Project"]
---

# Cancel Project File

`PUT /projects/{projectId}/files/{fileId}/cancel`

Cancels a project file.

The `fileId` path parameter can be either a source file identifier or a target file identifier. Use the [List Source Files](#/operations/ListSourceFiles) endpoint to obtain source file identifiers, or the [List Target Files](#/operations/ListTargetFiles) endpoint to obtain target file identifiers.

## Headers

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

## Response `204`

No Content

## Other responses

- `401` — The user could not be identified.
- `403` — Error codes: * "forbidden": the authenticated user is not allowed to read resource
- `404` — Error codes: * "notFound": the resource could not be found by identifier.
- `409` — Error codes: * "alreadyCanceled": the file was already cancelled.

---

[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/versions/d42dac7c28a3/schema)
