/group/new

Typically when generating a new expert, you would use the endpoint /npc/generateFriend which automatically creates a group and puts the NPC into that group.

This method enables using an existing NPC to create a group. For this endpoint, there are 2 main requirements:

  1. userId

  2. npcId

const newGroup = await backend.post('/group/new', {
    userId: '<User ID>',
    npcId: '<NPC ID>',
}).then((res) => res.data).catch(err => err.response.data);

Returns an object with the group details: name, groupId and imageUrl. And an object with the npc details: npcId, imageUrl, name, jobTitle

Last updated