I'm trying to automate the creation of app groups for a given bundle id. I've checked the documentation but there are no information regarding what to do to create a new app group identifier and how to connect it to a bundle identifier.
I can only enable the APP_GROUPS capability (https://developer.apple.com/documentation/appstoreconnectapi/enable_a_capability) but then there doesn't seem to be a way to assign an app group to a bundle id.
The modify capability endpoint (https://developer.apple.com/documentation/appstoreconnectapi/modify_a_capability_configuration) seem promising but there's no documentation regarding the format of the request, and after trying to list the information for a bundle identifier (https://developer.apple.com/documentation/appstoreconnectapi/list_all_capabilities_for_a_bundle_id) with a manually set up bundle identifier with an app group in the developer portal, the API doesn't even return the app groups for a bundle identifier with the APP_GROUPS enabled.
Is there really no way of doing this?