This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves an info section by ID or uniqueName
, or creates an info section if one with the passed uniqueName
doesn't exist.
Note: If an info section with the passed uniqueName
doesn't exist, the uniqueName
and title
fields are required to create a new info section.
function getOrCreateInfoSection(
options: GetOrCreateInfoSectionOptions,
): Promise<GetOrCreateInfoSectionResponse>;
import { infoSectionsV3 } from "@wix/stores";
async function getOrCreateInfoSection(options) {
const response = await infoSectionsV3.getOrCreateInfoSection(options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.