> 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 ## Resource: Sample Flows ## Article: Sample Flows ## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-sharing/sample-flows.md ## Article Content: # Data Sharing API: Sample Flows This article presents possible use cases and corresponding sample flows that you can support. These flows aren't the only ways to use this API, but they can be a helpful starting point as you plan your implementation. ## Distribute content across multi-locale marketing networks You manage a global brand with regional marketing sites that need to display localized content from a central content hub. Each regional site should only show content relevant to its specific market and locale, while maintaining consistent branding and messaging from the central team. To distribute content across multi-locale marketing networks: 1. On the central content hub site, call [Create Data Sharing Policy](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-sharing/create-data-sharing-policy.md) to create a sharing policy for your articles collection with locale filtering: ```json { "dataSharingPolicy": { "dataCollectionId": "Articles", "dataItemsFilter": { "filter": { "$and": [ {"locale": {"$eq": "en-US"}}, {"status": {"$eq": "published"}} ] } } } } ``` 2. Repeat step 1 to create additional policies for other locales. For example, `"fr-FR"`, `"de-DE"`. 3. On each regional marketing site, call [Connect To Shared Collection](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-sharing/connect-to-shared-collection.md) using the appropriate locale policy ID: ```json { "namespace": "central-content", "displayNamespace": "Central Marketing Content", "dataSharingPolicyId": "your-locale-policy-id" } ``` 4. Access the shared content on regional sites using the namespaced collection ID `central-content/Articles` through standard data collection APIs. 5. When the shared collection's content is modified on any site (central hub or regional sites), the changes automatically propagate to the source site and all target sites in real time. ## Notify connected sites when sharing policies change You manage a customer reviews database that multiple partner sites access through sharing policies. When you update a policy and remove a field from being shared, you want to identify all affected sites and notify them about the change so they can adjust their implementations accordingly. To notify connected sites when sharing policies change: 1. Update your sharing policy to remove restrictions by calling [Update Data Sharing Policy](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-sharing/update-data-sharing-policy.md). 2. Identify the affected sites by calling [List Shared Data Collections](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-sharing/list-shared-data-collections.md) for your collection. 3. Extract the target site IDs from the response to identify all connected partner sites. 4. Create a Notification template in the app dashboard and send a message about the update to each affected site's dashboard using the [Notifications API](https://dev.wix.com/docs/api-reference/business-management/notifications/notifications/introduction.md).