api : get and set last_sync_time