This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates extended fields of a menu ordering settings entity without incrementing its revision.
This function requires elevated permissions and runs only on the backend and on dashboard pages.
function updateExtendedFields(
_id: string,
namespace: string,
options: UpdateExtendedFieldsOptions,
): Promise<UpdateExtendedFieldsResponse>;
ID of the entity to update.
Identifier for the app whose extended fields are being updated.
import { menuOrderingSettings } from "wix-restaurants.v2";
async function updateExtendedFields(id, namespace, options) {
try {
const result = await menuOrderingSettings.updateExtendedFields(
id,
namespace,
options,
);
return result;
} catch (error) {
console.error(error);
// Handle the error
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.