This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Adds a location type to the specified location.
You can only call this method when authenticated as a Wix app or Wix user identity.
function addTypeToLocation(
_id: string,
locationType: LocationType,
): Promise<AddTypeToLocationResponse>;
ID of the location where the type will be added.
Location type to add.
import { locations } from "@wix/business-tools";
async function addTypeToLocation(id, locationType) {
const response = await locations.addTypeToLocation(id, locationType);
}
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.