---
source_url: https://www.pubnub.com/docs/admin-api/datasync-group
title: datasync-group
description: "## DataSync"
---

# datasync-group

> For AI agents: documentation index at https://www.pubnub.com/llms-full.txt

## DataSync

This group of endpoints allows you to manage the classes of DataSync on a subscribe key.

DataSync lets you store and synchronize application data directly on PubNub and keep every connected client up to date in real time, without adding an external database or building your own sync layer. You define classes for your data, your app creates records of those classes, and PubNub stores them, validates the class properties you declared, and can publish every change as a DataSync event.

**Core Concepts:**

* **Entity classes**: The classes of entities, the records your app stores, such as a user or a product
* **Relationship classes**: The classes of relationships, each of which links exactly two entities, with a cardinality and, optionally, the entity class each side accepts
* **Class versions**: Each class has numbered versions, and an update keeps the version number
* **Class properties**: JSON Pointer paths into the payload of a record, each with a value type, a filtering mode and the projections it belongs to

**Class Levels:**

* **Global**: Classes PubNub seeds for every subscribe key, such as `User`, `Channel` and `Membership`. They are read-only
* **SubKey**: Classes you define for one subscribe key through these endpoints
