# restore_property

Bring an archived property back with its values.

`POST /v1/properties/{propertyDefId}/restore` · MCP tool `restore_property` · scope `write` · beta · since 2026-10-26.4

Restore in the studio's Removed list: the property is live again at the end of the order, with every value the spots kept, and buyers' filters find them again. Refused while the guide holds 50 live properties. Returns the property as list_properties does.

## Path parameters

- `propertyDefId` (string, required): Id of an archived property definition (list_properties shows archived ones).

## Returns

200: Property.

- `propertyDefId` (string, required): The property's id.
- `key` (string, required): The immutable key spots use in customValues.
- `label` (string, required): The label buyers see.
- `kind` (string, required): The kind; it decides the value's type and whether buyers can filter by it. shortLabel holds a tiny fact of a few words; ownPage holds longer writing that opens on its own page. Explanations also fit in a spot's longDescription. One of `shortLabel`, `ownPage`, `reels`, `number`, `date`, `checkbox`, `singleSelect`, `categories`.
- `order` (number, required): Display order (ascending).
- `required` (boolean, optional): true when every spot must carry a value. Absent means false.
- `visible` (boolean, required): Whether the property is shown on spot pages. New categories properties default to false; other kinds default to true. Existing properties without a saved flag stay visible. Filters and saved values are unaffected.
- `filterable` (boolean, required): Whether buyers can filter by it (number, date, checkbox, singleSelect and categories).
- `placeholder` (string or null, required): Editor placeholder text.
- `numUnit` (string or null, required): Unit label for number properties.
- `options` (array of objects, required): Options of checkbox and singleSelect properties; categories supplies predefined ids and labels whose icons come from the category registry. Non-archived category options are enabled for new picks; disabling one preserves saved assignments, icons and buyer filters.
  - `id` (string, required): The option's immutable id: the value spots store.
  - `label` (string, required): The option's label.
  - `order` (number, required): Display order (ascending).
  - `archived` (boolean, required): true when the option is retired; stored values stay.
- `archived` (boolean, required): true when the property is archived; stored values stay.
- `schemaVersion` (number, required): The guide's property schema version after the last change.

## Examples

### Bring Lens back with the values the spots kept

```bash
curl -X POST "https://sceniq.earth/api/v1/properties/kh7v7h8st8cr913jb2kzb839yxjtpkdf/restore" \
  -H "Authorization: Bearer $SCENIQ_API_KEY"
```

MCP `tools/call`:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "restore_property",
    "arguments": {
      "propertyDefId": "kh7v7h8st8cr913jb2kzb839yxjtpkdf"
    }
  }
}
```

Response 200:

```json
{
  "propertyDefId": "kh7v7h8st8cr913jb2kzb839yxjtpkdf",
  "key": "lens",
  "label": "Lens",
  "kind": "shortLabel",
  "order": 4,
  "required": false,
  "visible": true,
  "filterable": false,
  "placeholder": "16-35 mm",
  "numUnit": null,
  "options": [],
  "archived": false,
  "schemaVersion": 11
}
```

## Errors

- `invalid_argument` (400): A required field is missing, a field is unknown, or a value does not match its type (the Convex validator's path and value are in the message).
- `invalid_request` (400): A writer refused a value: a map link on a host that is not allowed, a title that is too long, a date that does not exist, too many items in a list. The message is the writer's own sentence.
- `unauthenticated` (401): The request carries no key. Send it as Authorization: Bearer sk_sceniq_... (or X-Api-Key).
- `invalid_api_key` (401): The key is unknown, revoked or expired.
- `api_scope_required` (403): A read-only key called a write operation, or a key without the publish option called publish_changes.
- `forbidden` (403): The key belongs to a creator account that is no longer active.
- `not_found` (404): The id does not exist or belongs to another creator. The two answers are identical on purpose, so ids never reveal what exists.
- `payload_too_large` (413): A JSON body over 2 MB, an image over 6 MB, a batch upload over 19 MB, or an MCP message over 2 MB.
- `rate_limited` (429): Over a limit: requests per key per minute, per creator per hour, uploads per key per minute, or check_links per guide per hour.
- `internal_error` (500): An unexpected failure. The message is hidden on purpose.

Reference: https://developers.sceniq.earth/reference/restore_property
