<script>
window.addEventListener('block-loaded-blockid', () => {
window.addEventListener('call-api-success-blockid', (e) => {
setTimeout(() => {
window.dispatchEvent(new CustomEvent('reload-block-blockid'));
}, 5000);
});
});
</script>
Replace blockid with your own block name/id, adjust the timout period If needed and add the code to Page Settings>Custom Code>Header section and publish the updates afterwards