---
title: "Rename Company Collection"
method: POST
path: "/api/companies/{company_uuid}/contents/collections/rename"
tags: ["contents"]
---

# Rename Company Collection

`POST /api/companies/{company_uuid}/contents/collections/rename`

## Request

- Base URL: `https://api.regdoor.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.regdoor.com/api/companies/{company_uuid}/contents/collections/rename`
- Auth: HTTP bearer

Rename a collection label on all company private documents that reference it.

This renames the label across every document in the company, so it cannot be
scoped to "own" — only callers with "all" scope on edit_private_content may
use it.

## Path parameters

- `company_uuid` string, uuid, required

## Headers

- `X-User-Email` string, nullable
- `X-User-Name` string, nullable

## Request body

- AppViewsMediaSchemasRenameCollectionBody: Rename a collection label across all company private documents that use it.
  - `from_name` string, required
  - `to_name` string, required

## Response `200`

Successful Response

- RenameCollectionResult
  - `updated` integer, required

## Other responses

- `404`: Not found
- `422`: Validation Error

---

[API](https://skmtc.dev/regdoor/apis/regdoor-api.md) - [All operations](https://skmtc.dev/regdoor/apis/regdoor-api/llms.txt) - [OpenAPI document](https://skmtc.dev/regdoor/apis/regdoor-api/revisions/7642336631af?raw)
