This article presents possible use cases and corresponding sample flows that your app can support. It provides a useful starting point as you plan your app's implementation.
Suppose you're developing an app that provides promotional campaigns for stores. Your app integrates with Wix
Multilingual to allow Wix users to translate promotions for customers. You've already used
the Create Schema
method to create a GLOBAL
schema for all sites. Your schema includes a promotionDetails
field that allows stores to
provide the fine details of the promotion to the customer. Initially, this field is limited to 256 characters. Due to a
recent update in your app, this field now supports up to 1024 characters. You need to update your app's schema to
reflect this change:
Call Update Schema
with the promotionDetails
field, allowing up to 1024 characters.
Now let's say the restaurant owner wants to disable the option for customers to tip couriers, and requests that you
remove the courier_tip
field from the schema. Since the schema has a GLOBAL
scope, updating it would affect all
sites using it. To avoid this, you'll create a site-specific schema based on the existing global one as follows:
SITE
scope to create a custom schema for the restaurant's site. Copy all the
fields from the existing schema except for the courier_tip
field.To summarize, updating the schema for a specific site removes the courier_tip
field only for that site. Other sites
using the global schema will still have the option to include tips. This prevents unintended changes for all app users.