---
title: "Put Project File"
method: PUT
path: "/projects/{project_id}/files/{filename}"
---

# Put Project File

`PUT /projects/{project_id}/files/{filename}`

## Request

- Base URL: `https://usemeridian.us` (the document declares no server; this is the origin it was published from)
- URL: `https://usemeridian.us/projects/{project_id}/files/{filename}`
- Auth: none declared

Write content to one editable markdown file.

Creates the file if it does not exist. 403 if the filename is not in the
allow-list. Returns ``{"filename": ..., "size": <bytes>}``.

## Path parameters

- `project_id` string, required
- `filename` string, required

## Request body

- FileContent: Body for PUT /projects/{id}/files/{filename}.
  - `content` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/usemeridian/apis/meridian.md) · [All operations](https://skmtc.dev/usemeridian/apis/meridian/llms.txt) · [OpenAPI document](https://skmtc.dev/usemeridian/apis/meridian/revisions/f37a894bd374?raw)
