update thread api