put https://rls.congacloud.com/api/user-management/v1/user-groups/bulk-upsert-userGroups
This API will facilitate both the creation and updating of multiple user groups.
Note: If a user group already exists (based on a Platform user record identifier), the API will update the existing user group instead of creating a duplicate record , else if the user group is not present new record is created.
