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

# Admin Restore Set

`POST /api/price-compare/admin/sets/{set_id}/restore`

## 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}/restore`
- Auth: OAuth 2
  - Password
  - Token URL: `/api/auth/login`

Undo a deletion — the operator's own, or the owner's.

The owner has no undo in the product, so this is the only way back for a
benchmark somebody deleted by accident. Clearing both columns puts the row
back exactly as it was; the client picks it up on its next pull.

## Path parameters

- `set_id` 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)
