Add leave group api endpoint.