update tex on api