I notice Nextcloud 30.0.4 has the ability to rename a group. Studying the database tables, I see groups now have an id (the name you originally created them with) and a displayname (which is what is displayed).
How do I find the displayname of a group using the ocs API? The group/details api doesn’t return it.
I read elsewhere that searching for a group in the API searches both the id and the displayname. Is that correct?
You can use the details API for that:
curl -X 'GET' \
'https://nextcloud-mm.local/ocs/v2.php/cloud/groups/details?offset=0' \
-H 'accept: application/json' \
-H 'OCS-APIRequest: true'
I recommend OCS API Viewer - Apps - App Store - Nextcloud if you wanna play around with the API 
Thank you so much.
Can you explain how to find this API from the OCS API viewer? I find its user interface baffling.
It’s a bit tricky if you don’t know the modules, indeed. For this you need to look at the provisioning api