Using the API, partners can add existing users to a group within a customer portal.
Follow the steps on our Authentication and authorization guide to retrieve an access token.
Post a request to the GroupsAPI with the access token in the header
curl --location --request POST 'https://api.go1.com/v2/groups/membership' \ --header 'Authorization: Bearer ACCESS_TOKEN' \ --header 'Content-Type: application/json' \ --data-raw '{ "group_id": THE_GROUP_ID_RETURNED_WHEN_CREATING_THE_GROUP, "user_ids": [USER_ID1, USER_ID2] }'
The API will return a success message and the membership ID.