Skip to content
This page View Markdown Open in ChatGPT Open in Claude

Reset third party API cache

g.sys.cache.resetCacheThirdPartyApis calls the reset third party API cache system API from your code.

Reset cache of Third party APIs

Reset Third party API cache using global object 'g'.

1
2
3
4
await g.sys.cache.resetCacheThirdPartyApis({
    "apiBundleName": "bundle_name",
    "apiVersionName": "api_version_name"
});

Multi-tenant

  • The cache of the third party APIs called for one tenant of a multi-tenant instance, with the x-am-tenant-username header. Without a tenant, the cache of every tenant is reset too.
1
2
3
4
5
await g.sys.cache.resetCacheThirdPartyApis({
    "apiBundleName": "bundle_name",
    "apiVersionName": "api_version_name",
    "tenantUsername": "acme"
});