This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates a category.
function createCategory(category: Category): Promise<Category>;
Category to create.
import { categories } from "@wix/bookings";
async function createCategory(category) {
const response = await categories.createCategory(category);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.