We are currently loading the existing user group but don't have the ability to add them.
This task requires
-
adding a modal that should appear when New group is clicked, and providing info about the user group in form fields
-
form validation of user group data
-
include a typeahead of users to add to user group
-
http request to a12n server
-
success and response states reflected after submission attempt
To create a group, POST to /group with this body:
{
"type": "group",
"nickname": "Name of new group
}
Ketting example:
const groupCollection = client.go('/group');
const newGroup = await groupCollection.postFollow({
data: {
type: 'group',
nickname: 'My Group'
})
});
// URI of new group
console.log(group.uri);
// Full group body
console.log(await group.get());