Adding and Removing a Member
Users can be added to groups and removed from groups.
Adding a member
A group owner can add additional members to their group as shown below:
curl -v -X PUT \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
"https://api-jp.kii.com/api/apps/{APP_ID}/groups/{GROUP_ID}/members/{USER_ID}" \
-d ""
Kii Cloud will return a 204 response when the specified user is successfully added to the group or the user is already a member of the group.
Removing a member
A group owner can remove members from their group as shown below:
curl -v -X DELETE \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
"https://api-jp.kii.com/api/apps/{APP_ID}/groups/{GROUP_ID}/members/{USER_ID}"
Kii Cloud will return a 204 response when the specified user is successfully removed from the group. If the specified user is not in the group, Kii Cloud will return a 404 response.