> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # UpdateExtendedFields # Package: onlineOrders # Namespace: MenuOrderingSettingsService # Method link: https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/menu-ordering-settings/update-extended-fields.md ## Permission Scopes: Manage Restaurants - all permissions: SCOPE.RESTAURANTS.MEGA-SCOPES ## Introduction Updates extended fields of a menu ordering settings entity without incrementing its revision. --- ## REST API ### Schema ``` Method: updateExtendedFields Description: Updates extended fields of a menu ordering settings entity without incrementing its revision. URL: https://www.wixapis.com/v1/menu-ordering-settings/{id}/update-extended-fields Method: POST # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: namespace, namespaceData Method parameters: param name: namespace | type: namespace | description: Identifier for the app whose extended fields are being updated. | required: true param name: namespaceData | type: namespaceData | description: Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md#json-schema-for-extended-fields) defined when the extended fields were configured. | required: true Return type: UpdateExtendedFieldsResponse - name: menuOrderingSettings | type: MenuOrderingSettings | description: The updated menu ordering settings entity. - name: id | type: string | description: Menu ordering settings object GUID. - name: revision | type: string | description: Revision number. Increments by 1 each time the menu ordering settings object is updated. To prevent conflicting changes, the existing revision must be specified when updating a menu ordering settings object. - name: createdDate | type: string | description: Date and time the menu ordering settings object was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format. - name: updatedDate | type: string | description: Date and time the menu ordering settings object was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format. - name: operationId | type: string | description: GUID of the restaurant operation the menu belongs to. (See the Restaurants Operations API for more information.) - name: menuId | type: string | description: GUID of the menu these settings apply to. - name: onlineOrderingEnabled | type: boolean | description: Whether online ordering is enabled for the menu. - name: availability | type: Availability | description: Menu availability settings. - ONE-OF: - name: weeklyScheduleOptions | type: WeeklyScheduleOptions | description: Settings for availability on a weekly schedule. - name: availableTimes | type: array | description: List of available time ranges for specific days of the week. - name: dayOfWeek | type: DayOfWeek | description: The day of week this availability relates to. - enum: - MON: Monday. - TUE: Tuesday. - WED: Wednesday. - THU: Thursday. - FRI: Friday. - SAT: Saturday. - SUN: Sunday. - name: timeRanges | type: array | description: A list of time ranges during which the fulfillment should be available. - name: startTime | type: TimeOfDay | description: The start time in time of day representation. - name: hours | type: integer | description: Hours.
Min: `0`.
Max: `23`. - name: minutes | type: integer | description: Minutes.
Min: `0`.
Max: `23`. - name: endTime | type: TimeOfDay | description: The end time in time of day representation. - name: timestampRangesOptions | type: TimestampRangesOptions | description: Settings for availability within a time range. - name: ranges | type: array | description: List of available time ranges. - name: startTime | type: string | description: The start time of the availability in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format. - name: endTime | type: string | description: The end time of the availability in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format. - name: type | type: AvailabilityType | description: Availability type. - enum: - UNSPECIFIED_AVAILABILITY_OPTION: Missing type due to an error. - ALWAYS_AVAILABLE: Available all the time. - WEEKLY_SCHEDULE: Available on specific days and times throughout the week. - TIMESTAMP_RANGES: Available during a specific time range. - name: timeZone | type: string | description: Time zone in [Time Zone Database](https://www.iana.org/time-zones) format. - name: businessLocationId | type: string | description: Business location GUID ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations.md) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations.md)) of the menu. - name: extendedFields | type: ExtendedFields | description: Extended fields. - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured. You can only access fields for which you have the appropriate permissions. Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md). - name: tags | type: Tags | description: Tags ([SDK](https://dev.wix.com/docs/sdk/backend-modules/tags/tags/introduction.md) | [REST](https://dev.wix.com/docs/rest/business-management/tags/introduction.md)) used to classify and sort different types of menu ordering settings. - name: privateTags | type: TagList | description: Tags that require an additional permission in order to access them, normally not given to site members or visitors. - name: tagIds | type: array | description: List of tag GUIDs - name: tags | type: TagList | description: Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. ``` ### Examples ### Update a menu ordering settings entity ```curl curl -X POST https://www.wixapis.com/menu-ordering-settings/v1/menu-ordering-settings/84cd5bac-2094-4ed1-8dbd-92074fee0a2/update-extended-fields \ -H 'Content-Type: application/json;charset=UTF-8' \ -H 'Authorization: ' \ --data-raw '{ "id": "84cd5bac-2094-4ed1-8dbd-92074fee0a2b", "namespace": "@restaurants/orders", "namespaceData": { "productDescription": "some product" } }' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.onlineOrders.MenuOrderingSettingsService.updateExtendedFields(_id, namespace, options) Description: Updates extended fields of a menu ordering settings entity without incrementing its revision. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: _id, namespace, options.namespaceData, options Method parameters: param name: _id | type: string | description: GUID of the entity to update. | required: true param name: namespace | type: string | description: Identifier for the app whose extended fields are being updated. | required: true param name: options | type: UpdateExtendedFieldsOptions none | required: true - name: namespaceData | type: object | description: Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md#json-schema-for-extended-fields) defined when the extended fields were configured. | required: true Return type: PROMISE - name: menuOrderingSettings | type: MenuOrderingSettings | description: The updated menu ordering settings entity. - name: _id | type: string | description: Menu ordering settings object GUID. - name: revision | type: string | description: Revision number. Increments by 1 each time the menu ordering settings object is updated. To prevent conflicting changes, the existing revision must be specified when updating a menu ordering settings object. - name: _createdDate | type: Date | description: Date and time the menu ordering settings object was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format. - name: _updatedDate | type: Date | description: Date and time the menu ordering settings object was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format. - name: operationId | type: string | description: GUID of the restaurant operation the menu belongs to. (See the Restaurants Operations API for more information.) - name: menuId | type: string | description: GUID of the menu these settings apply to. - name: onlineOrderingEnabled | type: boolean | description: Whether online ordering is enabled for the menu. - name: availability | type: Availability | description: Menu availability settings. - ONE-OF: - name: weeklyScheduleOptions | type: WeeklyScheduleOptions | description: Settings for availability on a weekly schedule. - name: availableTimes | type: array | description: List of available time ranges for specific days of the week. - name: dayOfWeek | type: DayOfWeek | description: The day of week this availability relates to. - enum: - MON: Monday. - TUE: Tuesday. - WED: Wednesday. - THU: Thursday. - FRI: Friday. - SAT: Saturday. - SUN: Sunday. - name: timeRanges | type: array | description: A list of time ranges during which the fulfillment should be available. - name: startTime | type: TimeOfDay | description: The start time in time of day representation. - name: hours | type: integer | description: Hours.
Min: `0`.
Max: `23`. - name: minutes | type: integer | description: Minutes.
Min: `0`.
Max: `23`. - name: endTime | type: TimeOfDay | description: The end time in time of day representation. - name: timestampRangesOptions | type: TimestampRangesOptions | description: Settings for availability within a time range. - name: ranges | type: array | description: List of available time ranges. - name: startTime | type: Date | description: The start time of the availability in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format. - name: endTime | type: Date | description: The end time of the availability in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format. - name: type | type: AvailabilityType | description: Availability type. - enum: - UNSPECIFIED_AVAILABILITY_OPTION: Missing type due to an error. - ALWAYS_AVAILABLE: Available all the time. - WEEKLY_SCHEDULE: Available on specific days and times throughout the week. - TIMESTAMP_RANGES: Available during a specific time range. - name: timeZone | type: string | description: Time zone in [Time Zone Database](https://www.iana.org/time-zones) format. - name: businessLocationId | type: string | description: Business location GUID ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations.md) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations.md)) of the menu. - name: extendedFields | type: ExtendedFields | description: Extended fields. - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured. You can only access fields for which you have the appropriate permissions. Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md). - name: tags | type: Tags | description: Tags ([SDK](https://dev.wix.com/docs/sdk/backend-modules/tags/tags/introduction.md) | [REST](https://dev.wix.com/docs/rest/business-management/tags/introduction.md)) used to classify and sort different types of menu ordering settings. - name: privateTags | type: TagList | description: Tags that require an additional permission in order to access them, normally not given to site members or visitors. - name: tagIds | type: array | description: List of tag GUIDs - name: tags | type: TagList | description: Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. ``` ### Examples ### updateExtendedFields ```javascript import { menuOrderingSettings } from '@wix/restaurants'; async function updateExtendedFields(_id,namespace,options) { const response = await menuOrderingSettings.updateExtendedFields(_id,namespace,options); }; ``` ### updateExtendedFields (with elevated permissions) ```javascript import { menuOrderingSettings } from '@wix/restaurants'; import { auth } from '@wix/essentials'; async function myUpdateExtendedFieldsMethod(_id,namespace,options) { const elevatedUpdateExtendedFields = auth.elevate(menuOrderingSettings.updateExtendedFields); const response = await elevatedUpdateExtendedFields(_id,namespace,options); } ``` ### updateExtendedFields (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { menuOrderingSettings } from '@wix/restaurants'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { menuOrderingSettings }, // Include the auth strategy and host as relevant }); async function updateExtendedFields(_id,namespace,options) { const response = await myWixClient.menuOrderingSettings.updateExtendedFields(_id,namespace,options); }; ``` ---