---
title: "Refresh Hpi"
method: POST
path: "/api/cron/refresh-hpi"
tags: ["cron"]
---

# Refresh Hpi

`POST /api/cron/refresh-hpi`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/cron/refresh-hpi`
- Auth: none declared

Refresh cached UKHPI house price indices for all active properties.
Designed as a monthly Railway cron; safe to run daily (no-ops when no
new month is published). Protected by X-Cron-Secret header.

## Headers

- `X-Cron-Secret` string
- `x-cron-secret` string

## Response `200`

Successful Response

- HpiRefreshResponse
  - `status` string, required
  - `slugs_checked` integer, required
  - `slugs_updated` integer, required
  - `properties_healed` integer, required
  - `errors` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/earmarkiq/apis/earmark-api.md) · [All operations](https://skmtc.dev/earmarkiq/apis/earmark-api/llms.txt) · [OpenAPI document](https://skmtc.dev/earmarkiq/apis/earmark-api/revisions/4a2c41907105?raw)
