---
title: "Rename a user's custom report"
method: PUT
path: "/api/user/custom-reports/{id}/rename"
tags: ["User Custom Reports"]
---

# Rename a user's custom report

`PUT /api/user/custom-reports/{id}/rename`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/user/custom-reports/{id}/rename`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/user/custom-reports/:id/rename/put.ts> (a function with typed inputs; its response is checked against the schema)

Renames the user's copy of a custom report. Only the owner can rename their report. If the new name conflicts with an existing report, it will be automatically adjusted with a numeric suffix.

## Path parameters

- `id` integer, required

## Request body

- UserCustomReportRenameRequest
  - `name` string, required: New report name

## Response `200`

Report renamed successfully

- UserCustomReportResource
  - `id` integer
  - `name` string
  - `description` string, nullable
  - `type` string
  - `url` string, nullable
  - `created_at` string
  - `is_viewed` boolean, nullable

## Other responses

- `403`: Access denied - user is not the owner of this report
- `404`: Report not found
- `422`: Validation error

---

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