---
title: "Copy a file in space storage"
method: POST
path: "/space/{spaceId}/storage/copy/{path}"
tags: ["Space Storage"]
---

# Copy a file in space storage

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

## Request

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

Copy a file from one location to another within space storage. The
source file path is specified in the URL after /copy/. The
destinationPath in the request body specifies where to copy 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 copied 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)
