---
title: "Writes content of a file"
method: PUT
path: "/api/files/{file}"
tags: ["Files"]
---

# Writes content of a file

`PUT /api/files/{file}`

## Response `200`

Content of the file

## Other responses

- `403` — If the file parameter is invalid.

## Changes

- **2020-07-23** `42c41034504b` — 2 info
  - the endpoint scheme security `CookieAuthentication` was removed from the API
  - the endpoint scheme security `TokenAuthentication` was removed from the API

[Change history](https://skmtc.dev/contao/apis/contao-manager-api/changes/api/files/:file/put.md)

---

[API](https://skmtc.dev/contao/apis/contao-manager-api.md) · [All operations](https://skmtc.dev/contao/apis/contao-manager-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/contao/contao-manager-api/revisions/b0fe14acdeaf/schema)
