Cloud APIs
StandardDataStoresApi_V1
standardDatastoreEntryOfVersion

standardDatastoreEntryOfVersion

Returns the value and metadata of a specific version of an entry.

Parameters

NameTypeDescription
universeIdIdentifierThe identifier of the experience with data stores that you want to access.
datastoreNamestringThe name of the data store.
entryKeystringThe key identifying the entry.
versionIdstringThe version to inspect.
scope?stringThe value is global by default.

Example

type InventorySchema = { Iron?: number; Gold?: number; Copper?: number; Stone?: number; Wood?: number };
const { data: entry } = await StandardDataStoresApi_V1.standardDatastoreEntryOfVersion({
  universeId: 5097539509,
  datastoreName: "LoremIpsum",
  entryKey: "user/45348281",
  versionId: "08DC7742E4BD78AF.0000000001.08DC7742E4BD78AF.01",
}); 

Example Data

{
  entry: { Gold: 6, Iron: 57 },
  checksumsMatch: true,
  metadata: {
    contentMD5: "hGwoaGwduF4bOhexREYGkA==",
    entryVersion: "08DBB6A47FDE6132.0000000016.08DBB782CEE11766.01",
    entryCreatedTime: 2023-09-16T11:03:03.922Z,
    entryVersionCreatedTime: 2023-09-17T13:34:24.754Z,
    entryAttributes: null,
    entryUserIds: [45348281],
  },
} 

Endpoint

POST /v1/universes/{universeId}/standard-datastores/datastore/entries/entry/versions/version