Roblox Cloud icon

Roblox Cloud

Access Roblox Open Cloud APIs for groups, users, universes, places, storage, and more

Actions94

Storage → Update Memory Store Sorted Map Item

AI-generated

Overview

This node operation updates an existing item in a memory store sorted map within the Roblox Cloud storage resource. It allows users to modify the value and TTL (time-to-live) of a specific sorted map item identified by its item ID, within a given sorted map and universe. It supports an option to create the item if it does not already exist (allowMissing). This operation is useful for managing and updating sorted map data in Roblox Cloud memory stores, such as updating game state or player data stored in sorted maps.

Use Case Examples

  1. Updating a player's score in a sorted map for a game universe.
  2. Modifying configuration settings stored as sorted map items in a memory store.

Properties

Name Meaning
Universe ID The universe ID that owns the storage resource, used to specify the Roblox game universe context.
Sorted Map ID The memory store sorted map ID where the item resides, identifying the specific sorted map to update.
Item ID The memory store sorted map item ID, identifying the specific item to update within the sorted map.
Update Fields Query parameters for the update request, including 'Allow Missing' which determines whether to create the item if it does not exist.
Memory Store Sorted Map Item The JSON body of the sorted map item to update, including the value and TTL (time-to-live) for the item.

Output

JSON

  • response - The JSON response from the Roblox Cloud API after updating the memory store sorted map item, typically including the updated item details or status.

Dependencies

  • Roblox Cloud API with an API key credential

Troubleshooting

  • Ensure the Universe ID, Sorted Map ID, and Item ID are correct and exist in Roblox Cloud to avoid 'not found' errors.
  • If 'Allow Missing' is false and the item does not exist, the update will fail; set 'Allow Missing' to true to create the item if missing.
  • Check network connectivity and API credentials if requests fail or time out.
  • Verify the JSON structure of the Memory Store Sorted Map Item to avoid malformed request errors.

Discussion