POST

Update Extended Fields


Developer Preview

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.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Restaurants - all permissions
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/menu-ordering-settings/v1/menu-ordering-settings/{id}/update-extended-fields

Path Params
idstringRequired

ID of the entity to update.

Body Params
namespacestringRequired

Identifier for the app whose extended fields are being updated.


namespaceDatastructRequired

Data to update. Structured according to the schema defined when the extended fields were configured.

Response Object
menuOrderingSettingsMenuOrderingSettings

The updated menu ordering settings entity.

Update a menu ordering settings entity
Request
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: <AUTH>' \ --data-raw '{ "id": "84cd5bac-2094-4ed1-8dbd-92074fee0a2b", "namespace": "@restaurants/orders", "namespaceData": { "productDescription": "some product" } }'
Response
JSON
{ "menuOrderingSettings": { "id": "84cd5bac-2094-4ed1-8dbd-92074fee0a2b", "revision": "1", "createdDate": "2024-08-27T16:54:42.395Z", "updatedDate": "2024-08-27T16:54:42.395Z", "operationId": "48605ac5-53fc-49b4-96b2-87f7636f5ce0", "menuId": "6c10c8d4-db5a-4d67-af00-8ff321bbf4a5", "onlineOrderingEnabled": true, "availability": { "type": "ALWAYS_AVAILABLE", "timeZone": "Asia/Jerusalem" }, "extendedFields": { "namespaces": { "@restaurants/orders": { "productDescription": "some product" } } } } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?