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

# Rename model file

`PATCH /v1/models/{modelId}/files/{fileId}`

Rename a model file for the current organization and move its backing storage object.

## Path parameters

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

## Request body

- object
  - `organizationId` string
  - `filename` string, required

## Response `200`

Model file renamed successfully

- object — Model file renamed successfully
  - `file` object
    - `id` string
    - `filename` string
    - `file_path` string
    - `file_type` string
    - `file_size` number
    - `model_id` string
    - `organization_id` string
    - `created_at` string, nullable
    - `tags` string[], nullable

## Other responses

- `400` — Invalid request
- `404` — Model file not found
- `409` — Filename conflict or rev mismatch
- `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)
