Need help? Get answers from the docs with Omni's in-app AI! Log in to your Omni instance and open the Omni Agent in the sidebar.
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
}Resets the cache for the specified cache policy.
cachePolicyName values are not validated against existing policies. Verify that the values you provide are exact matches to policies in the model.
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
}Documentation Index
Fetch the complete documentation index at: https://docs.omni.co/llms.txt
Use this file to discover all available pages before exploring further.
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
The ID of the model associated with the cache policy.
The name of the cache policy to reset.
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.
Was this page helpful?