Skip to main content
POST
/
v1
/
models
/
{modelId}
/
cache_reset
/
{cachePolicyName}
Reset cache
curl --request POST \
  --url https://{instance}.omniapp.co/api/v1/models/{modelId}/cache_reset/{cachePolicyName} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "resetAt": "2023-11-07T05:31:56Z"
}
'
{
  "cache_reset": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "policy_name": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "reset_at": "2023-11-07T05:31:56Z"
  },
  "success": true
}

Authorizations

Authorization
string
header
required

Can be either an Organization API Key or Personal Access Token (PAT).

Include in the Authorization header as: Bearer YOUR_TOKEN

Path Parameters

modelId
string<uuid>
required

The ID of the model associated with the cache policy.

cachePolicyName
string
required

The name of the cache policy to reset.

Body

application/json
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

Cache reset successfully

cache_reset
object

The cache reset details.

success
boolean

Indicates the request was successful.