How to update vertex data?

I want to change the location of vertices on my vertex array and update them, how do I do it?