Skip to main content

Purge Oracle Metric Cache

Drops the copy of a metric provider's source document held by the server process that answered the request, so a corrected sheet shows up now instead of after the provider's cache_ttl_seconds. Only the SHEET provider keeps a document; other server processes keep theirs until their own cache window ends.

Unlike Purge Oracle Cache there are no shared summaries to drop: metric summaries are read from the source on every request, so summary_entries is always 0.

Required permission: oracle:update

Request​

DELETE /v2/admin/oracle-metrics/{oracle_metric_id}/cache

Parameters​

NameTypeInDescription
oracle_metric_idstringpathRequired. Metric provider id (24-character hex)

Headers​

NameDescription
AuthorizationRequired. Bearer <access_token>

Example​

curl --request DELETE \
--url '{{baseUrl}}/v2/admin/oracle-metrics/6a5d0206379ebd02e53bf1a1/cache' \
--header 'Authorization: Bearer <access_token>'

Response​

{
"summary_entries": 0,
"document_cleared": true
}

Response Fields​

FieldTypeDescription
summary_entriesintegerAlways 0 for metric providers
document_clearedbooleanWhether the answering process held a copy of the source document and dropped it. false means nothing was cached there

Errors​

StatusCodeDescription
40010000oracle_metric_id is not a valid 24-character hex id
40010001Metric provider not found or deleted (domain 53)

See Errors for the error format and common codes.