👋 Welcome to the new Omni docs! We're still migrating, but the old docs are available at docs-legacy.omni.co.
cURL
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 }
Reset cache for specified policy
Use either an Organization API Key or Personal Access Token (PAT). Include in the Authorization header as: Bearer YOUR_TOKEN
Bearer YOUR_TOKEN
Model ID
Cache policy name
Past-dated timestamp for cache reset
Cache reset successfully
Was this page helpful?