Create a tag group
Log in to add to favouritesCreate a new tag group
Call signature
create(tagGroup: ICreateTagGroup): Promise<TagGroup>;
Parameters
Name | Type | Description |
---|---|---|
tagGroup | ICreateTagGroup | A tag group-like object containing the required fields to create a tag group (id , name and an optional description ) |
Returns
A Promise that will resolve with a created Tag Group
Remarks
Throws any error that is returned by the API for any unsuccessful request echoing the HTTP status returned from the API
Example
Create a new tag group
const tagGroup = await client.tags.groups.create({
id: "topics",
name: "Topics",
description: "A collection of topic tags"
});
console.log(`Successfully created tag group`);