---
title: "POST /api/persist/set-refresh-schedule"
method: POST
path: "/api/persist/set-refresh-schedule"
tags: ["/api/persist"]
---

# POST /api/persist/set-refresh-schedule

`POST /api/persist/set-refresh-schedule`

Set the cron schedule to refresh persisted models.
   Shape should be JSON like {cron: "0 30 1/8 * * ? *"}.

## Request body

- object
  - `cron` string, required — Value must be a string representing a cron schedule of format <seconds> <minutes> <hours> <day of month> <month> <day of week> <year>

## Response `2XX`

Successful response

## Other responses

- `4XX` — Client error response
- `5XX` — Server error response

---

[API](https://skmtc.net/metabase/apis/metabase-api.md) · [All operations](https://skmtc.net/metabase/apis/metabase-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/metabase/metabase-api/revisions/08b5a2bafb4f/schema)
