The Data Sharing Policy API enables collection sharing between multiple sites in the same Wix account. It allows for cross-site data collaboration while maintaining data integrity and collection permissions.
The Data Sharing Policy API supports a 2-sided workflow where you can:
Shared collections are accessed through the CMS and the Data Items APIs using the collection ID.
It's important to note the following before starting to code:
Data sharing policy: Defines which collection to share, optional filtering rules to restrict which items are shared, and serves as the access credential for other sites to connect to the shared collection.
Sharing or shared connection: The active link between a source site and target site that enables data access.
Source site: Site that owns the collection and creates and manages sharing policies for that collection.
Target site: Site that connects to and accesses the shared collection using the data sharing policy ID.