This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates a new tag with the provided label if a tag with the same label doesn't already exist.
function createTag(
label: string,
options: CreateTagOptions,
): Promise<CreateTagResponse>;
Tag label. The label for each tag in a blog must be unique.
import { tags } from "@wix/blog";
async function createTag(label, options) {
const response = await tags.createTag(label, options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.