update api for heartbeats.