Create Group from Mender API

Hello there,
I’m trying to develop an integration between our services and Mender.
I need to create and maintain groups of devices in mender.
In my service i have a list of customers that i want to use as Groups in mender.
So i started developing a little connector between my service and Mender.
Than i found out that mender has no CRUD for Groups!
Just a GET for the group list : https://docs.mender.io/2.2/apis/open-source/management-apis/device-inventory#groups-get

Someone knows how to manage groups from API?

Hello!

you can add device to a group with PUT (https://docs.mender.io/2.2/apis/open-source/management-apis/device-inventory#add-a-device-to-a-group), remove device from group with DELETE (https://docs.mender.io/2.2/apis/open-source/management-apis/device-inventory#devices-id-group-name-delete), get the group the device belongs to (https://docs.mender.io/2.2/apis/open-source/management-apis/device-inventory#get-a-selected-devices-group), get groups (https://docs.mender.io/2.2/apis/open-source/management-apis/device-inventory#groups-get), and list devices in given group (https://docs.mender.io/2.2/apis/open-source/management-apis/device-inventory#groups-name-devices-get).
once group has no devices it ceases to exist.

hope it help,
peter