---
title: "Replace model file content"
method: PUT
path: "/v1/models/{modelId}/files/{fileId}/content"
tags: ["Models", "Public"]
---

# Replace model file content

`PUT /v1/models/{modelId}/files/{fileId}/content`

Overwrite the backing storage object for an existing model file and update its size/type metadata.

## Path parameters

- `modelId` string, required
- `fileId` string, required

## Response `200`

Model file content replaced successfully

- object — Model file content replaced successfully
  - `file` object

## Other responses

- `400` — Invalid request
- `404` — Model file not found
- `500` — Internal server error

---

[API](https://skmtc.net/printhiv3d/apis/hive-api-documentation.md) · [All operations](https://skmtc.net/printhiv3d/apis/hive-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/printhiv3d/hive-api-documentation/versions/3b06bcb5f808/schema)
