Cloud APIs
OrderedDataStoresApi_V2
incrementOrderedDataStoreEntry

incrementOrderedDataStoreEntry

Updates an entry in an ordered data store.

Parameters

NameTypeDescription
universeIdUniverseIdThe ID of the universe to update the entry in.
dataStoreIdDataStoreIdThe ID (name) of the data store to update the entry in.
scopeScopeThe scope of the data store entry to update.
entryIdEntryIdthe ID (name) of the entry to update.

Example

const { data: entry } = await OrderedDataStoresApi_V2.incrementOrderedDataStoreEntry({
  universeId: 5097539509,
  dataStoreId: "PointsStore",
  scope: "global",
  entryId: "45348281",
  incrementBy: 42,
}); 

Example Data

{
  path: "universes/5097539509/ordered-data-stores/PointsStore/scopes/global/entries/45348281",
  value: 42,
  id: "45348281",
} 

Endpoint

PATCH /v2/universes/{universeId}/ordered-data-stores/{dataStoreId}/scopes/{scope}/entries/{entryId}:increment