---
title: "Replace file content"
method: PUT
path: "/models/{model_id}/raw/{filename}"
tags: ["Files"]
---

# Replace file content

`PUT /models/{model_id}/raw/{filename}`

## Request

- Base URL: `https://try.manyfold.app`
- URL: `https://try.manyfold.app/models/{model_id}/raw/{filename}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `/oauth/token` scopes: `write`

## Request body `*/*`

- string, binary

## Response `200`

Success

## Other responses

- `400`: Bad Request
- `401`: Unauthorized; the request did not provide valid authentication details
- `403`: Forbidden; the provided credentials do not have permission to perform the requested action

## Changes

- **2026-09-02** (v0) `dded7badf99a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/manyfold3d/apis/manyfold-api/changes/models/:model_id/raw/:filename/put.md)

---

[API](https://skmtc.dev/manyfold3d/apis/manyfold-api.md) - [All operations](https://skmtc.dev/manyfold3d/apis/manyfold-api/llms.txt) - [OpenAPI document](https://skmtc.dev/manyfold3d/apis/manyfold-api/revisions/7ca71106280a?raw)
