For gitlab.com, any api can change default branch for all repos in a group?

we are using gitlab.com, want use command line to change default branch for all projects in same group together, any way to do this? thanks.