Cloud APIs
MemoryStoresApi
sortedMapItem

sortedMapItem

Gets a sorted map item.

Parameters

NameTypeDescription
universeIdIdentifierThe id of the universe to get the sorted map item from.
sortedMapstringThe sorted map to get the item from.
itemIdstringThe id of the item to get.

Example

type Item = { isReal: boolean };
const { data } = await MemoryStoresApi.sortedMapItem<Item>({
  universeId: 5243626809,
  sortedMap: "MySortedMap",
  itemId: "Testing123",
}); 

Example Data

{
  path: "cloud/v2/universes/5243626809/memory-stores/sorted-maps/MySortedMap/items/Testing123",
  value: { isReal: true },
  etag: "12",
  expireTime: 2024-04-18T01:44:49.000Z,
  id: "Testing123",
  numericSortKey: 1,
} 

Endpoint

GET /v2/universes/{universeId}/memory-store/sorted-maps/{sortedMap}/items/{itemId}