update API of create group