---
title: "Reset cache"
method: POST
path: "/v1/models/{modelId}/cache_reset/{cachePolicyName}"
tags: ["Models"]
---

# Reset cache

`POST /v1/models/{modelId}/cache_reset/{cachePolicyName}`

Reset the cache for the specified cache policy.

<Note>
  `cachePolicyName` values are not validated against existing policies. Verify that the values you provide are exact matches to policies in the model.
</Note>

## Path parameters

- `modelId` string, uuid, required
- `cachePolicyName` string, required

## Request body

- object
  - `resetAt` string, date-time — An ISO-8601 date string that sets the time the cache should be reset (invalidated). When set, cache entries created between this value and the current time will still be considered valid. Cannot be a future date. Defaults to now.

## Response `200`

Cache reset successfully

- object
  - `cache_reset` object — The cache reset details.
    - `id` string, uuid — ID of the cache reset record.
    - `model_id` string, uuid — ID of the model.
    - `policy_name` string — Name of the cache policy.
    - `created_at` string, date-time — Timestamp when the cache reset record was created.
    - `updated_at` string, date-time — Timestamp when the cache reset record was last updated.
    - `reset_at` string, date-time — Timestamp when the cache was reset.
  - `success` boolean — Indicates the request was successful.

## Other responses

- `400` — Bad Request Possible error messages: - `Model with id <modelId> does not exist` - `resetAt cannot be future dated`
- `404` — Not Found Possible error messages: - `Model with id <modelId> does not exist`
- `429` — Too Many Requests - Rate limit exceeded (60 requests/minute)

---

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