---
title: "Rename data-model source files"
method: POST
path: "/build/api/v1/deployments/{deploymentId}/data-model/files/rename"
tags: ["Data Model"]
---

# Rename data-model source files

`POST /build/api/v1/deployments/{deploymentId}/data-model/files/rename`

## Path parameters

- `deploymentId` integer, required

## Request body

- RenameDataModelFilesInput
  - `branchId` integer
  - `branchName` string
  - `files` DataModelFileRename[], required
    - `newPath` string, required
    - `path` string, required

## Response `200`

- DataModelWriteResponse
  - `success` boolean, required

## Changes

- **2026-07-31** `a0c6b1d2ac96` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api/changes/build/api/v1/deployments/:deploymentId/data-model/files/rename/post.md)

---

[API](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api.md) · [All operations](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cube-js/cube-cloud-rest-api/revisions/3adb3c5e66ca/schema)
