---
title: "Move (rename) a file in space storage"
method: POST
path: "/space/{spaceId}/storage/move/{path}"
tags: ["Space Storage"]
---

# Move (rename) a file in space storage

`POST /space/{spaceId}/storage/move/{path}`

## Request

- Base URL: `https://api.chatbotkit.com/api/v1`
- URL: `https://api.chatbotkit.com/api/v1/space/{spaceId}/storage/move/{path}`
- Auth: HTTP bearer

Move a file from one location to another within space storage, or
rename a file by moving it to a new path. The source file path is
specified in the URL after /move/. The destinationPath in the request
body is the target location for the file.

## Path parameters

- `spaceId` string, required: The ID of the space
- `path` string, required: The source file path

## Request body

- object
  - `destinationPath` string, required: The destination file path

## Response `200`

The file was moved successfully

- object
  - `path` string, required: The destination file path

## Other responses

- `default`: An error response

---

[API](https://skmtc.dev/chatbotkit/apis/cbk-api.md) · [All operations](https://skmtc.dev/chatbotkit/apis/cbk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chatbotkit/apis/cbk-api/revisions/13d250576136?raw)
