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"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "policy_name": "<string>",
  "success": true
}

Authorizations

Authorization
string
header
required

Use 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

Model ID

cachePolicyName
string
required

Cache policy name

Body

application/json
resetAt
string<date-time>

Past-dated timestamp for cache reset

Response

Cache reset successfully

id
string<uuid>
model_id
string<uuid>
policy_name
string
success
boolean