Group weight

How i can update group weight to several groups at the same time?