---
title: "Admin Rename Set"
method: PATCH
path: "/api/price-compare/admin/sets/{set_id}"
tags: ["Price Compare"]
---

# Admin Rename Set

`PATCH /api/price-compare/admin/sets/{set_id}`

## Request

- Base URL: `https://data.getplace.io` (the document declares no server; this is the origin it was published from)
- URL: `https://data.getplace.io/api/price-compare/admin/sets/{set_id}`
- Auth: OAuth 2
  - Password
  - Token URL: `/api/auth/login`

Rename one benchmark in any account.

Only the name: the payload is the client's work, and the place to change
that is the benchmark screen, not an operator panel. The name inside the
payload is kept in step, because setsSync.fromRow prefers the row's name but
the editor reads the payload's.

## Path parameters

- `set_id` string, required

## Request body

- RenameRequest
  - `name` string, required

## Response `200`

Successful Response

- AdminSetRow
  - `id` string, required
  - `name` string, required
  - `user_id` string, required
  - `owner` Owner
    - `user_id` string, required
    - `email` string, nullable
    - `name` string, nullable
    - `source` 'local' | 'getplace'
    - `allow_menu_access` boolean, nullable
    - `can_sign_in` boolean, nullable
    - `grants` GrantSummary[]
      - `country_code` string, required
      - `chain_count` integer
      - `cities` string[]
  - `summary` SetSummary, required: What a benchmark is, read off its payload so the list can skip the blob. A payload is tens of kilobytes; fifty of them in one response is megabytes of store links and per-store overrides that the list would not render.
    - `my_chain` string, nullable
    - `my_chain_id` integer, nullable
    - `competitors` string[]
    - `rows_count` integer
    - `country` string, nullable
    - `city_id` string, nullable
    - `platform` string, nullable
    - `copied_from` string, nullable
  - `payload_bytes` integer, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `deleted_at` string, date-time, nullable
  - `deleted_by` string, nullable

## Other responses

- `422`: Validation Error

---

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