---
title: "Rename objects"
method: POST
path: "/bus/objects/rename"
tags: ["bus"]
---

# Rename objects

`POST /bus/objects/rename`

Renames a single object or multiple objects with a prefix.

## Request body

- object
  - `bucket` string — The name of the bucket.
  - `from` string — Source path/prefix
  - `to` string — Destination path/prefix
  - `mode` 'single' | 'multi' — Whether to rename a single object or multiple objects
  - `force` boolean — Whether to overwrite existing objects

## Response `200`

Successfully renamed objects

## Other responses

- `400` — Malformed request
- `500` — Internal server error

---

[API](https://skmtc.net/siafoundation/apis/renterd-api.md) · [All operations](https://skmtc.net/siafoundation/apis/renterd-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/siafoundation/renterd-api/versions/184a3d5207da/schema)
