POST

Bulk Get Shared Collection Stats


Retrieves sharing statistics for data collections shared out from the current site.

For each source data collection, returns the number of distinct target sites the collection is currently shared with. Use this when you need a per-collection sharing summary (for example, a "Shared with N sites" indicator) without retrieving the full list of sharing connections.

You can look up stats for up to 100 collections per call by specifying sourceDataCollectionIds. Leave sourceDataCollectionIds empty to return stats for every source data collection on the current site that has at least one active sharing connection.

When you specify sourceDataCollectionIds, the response contains one result per distinct provided ID. A result has itemMetadata.success = true and stats populated when the collection has at least one active sharing connection. Otherwise, itemMetadata.success = false with itemMetadata.error.code = "NOT_FOUND".

To retrieve the full list of sharing connections (including target site and collection IDs), call List Shared Data Collections with sharedWithCurrentSite set to false.

Note: connectedSitesCount counts distinct target sites. If the same target site connects through multiple policies, it is counted once.

Authentication

This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:

Permissions
Manage Data Collection Sharing
Learn more about app permissions.
Method Declaration
Copy
Errors

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

Did this help?