Ordered data stores (beta)
This page includes reference documentation for working with ordered data stores. For more information on using the API, see Handle API requests for data stores and the usage guide.
OrderedDataStores
List
Returns a list of entries from an ordered data store.
Parameters
The identifier of the experience with ordered data stores that you want to access. See Universe ID on how to copy it on Creator Dashboard.
The name of the target ordered data store.
The name of the data store scope. See Scopes.
The maximum number of entries to return. The service may return fewer than this value. The default value is 10. The maximum value is 100, and any input above 100 is coerced to 100.
A page token received from a previous List call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to List must match the call providing the page token.
The enumeration direction. The order by default is ascending. Input a desc suffix for descending.
The range of qualifying values of entries to return. See Filters.
Request
curl --location 'https://apis.roblox.com/ordered-data-stores/v1/universes/<universeId>/orderedDataStores/<orderedDataStore>/scopes/<scope>/entries' \
--header 'x-api-key: <insert-api-key>'
Response
Required Permissions
The following API key permissions are required to call this endpoint. For more information on generating proper keys, see Manage API keys.
Create
Creates a new entry with the content value provided.
Parameters
The identifier of the experience with ordered data stores that you want to access. See Universe ID on how to copy it on Creator Dashboard.
The name of the ordered data store.
The name of the data store scope. See Scopes.
The name of the entry.
Request
curl --location 'https://apis.roblox.com/ordered-data-stores/v1/universes/<universeId>/orderedDataStores/<orderedDataStore>/scopes/<scope>/entries?id=<id>' \
--header 'x-api-key: <insert-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"value": <long>
}'
Response
Required Permissions
The following API key permissions are required to call this endpoint. For more information on generating proper keys, see Manage API keys.
Get
Gets and returns the specified entry.
Parameters
The identifier of the experience with ordered data stores that you want to access. See Universe ID on how to copy it on Creator Dashboard.
The name of the ordered data store.
The name of the data store scope. See Scopes.
The entry ID.
Request
curl --location 'https://apis.roblox.com/ordered-data-stores/v1/universes/<universeId>/orderedDataStores/<orderedDataStore>/scopes/<scope>/entries/<entry>' \
--header 'x-api-key: <insert-api-key>'
Response
Required Permissions
The following API key permissions are required to call this endpoint. For more information on generating proper keys, see Manage API keys.
Delete
Deletes the specified entry.
Parameters
The identifier of the experience with ordered data stores that you want to access. See Universe ID on how to copy it on Creator Dashboard.
The name of the ordered data store.
The name of the data store scope. See Scopes.
The entry ID.
Request
curl --location --request DELETE 'https://apis.roblox.com/ordered-data-stores/v1/universes/<universeId>/orderedDataStores/<orderedDataStore>/scopes/<scope>/entries/<entry>' \
--header 'x-api-key: <insert-api-key>'
Response
Required Permissions
The following API key permissions are required to call this endpoint. For more information on generating proper keys, see Manage API keys.
Update
Updates an entry value and returns the updated entry.
Parameters
The identifier of the experience with ordered data stores that you want to access. See Universe ID on how to copy it on Creator Dashboard.
The name of the ordered data store.
The name of the data store scope. See Scopes.
The entry ID.
The flag to allow the creation of an entry if the entry doesn't exist. See Allow missing flags.
Request
curl --location --request PATCH 'https://apis.roblox.com/ordered-data-stores/v1/universes/<universeId>/orderedDataStores/<orderedDataStore>/scopes/<scope>/entries/<entry>' \
--header 'x-api-key: <insert-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"value": <long>
}'
Response
Required Permissions
The following API key permissions are required to call this endpoint. For more information on generating proper keys, see Manage API keys.
Increment
Increments the value of the key by the provided amount and returns the updated entry.
Known issue: Entry values can increment past the valid range and this may persist in the backend. Returned values will clamp to the valid range.
Parameters
The identifier of the experience with ordered data stores that you want to access. See Universe ID on how to copy it on Creator Dashboard.
The name of the ordered data store.
The name of the data store scope. See Scopes.
The entry ID.
Request
curl --location 'https://apis.roblox.com/ordered-data-stores/v1/universes/<universeId>/orderedDataStores/<orderedDataStore>/scopes/<scope>/entries/<entry>:increment' \
--header 'x-api-key: <insert-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"amount": <long>
}'
Response
Required Permissions
The following API key permissions are required to call this endpoint. For more information on generating proper keys, see Manage API keys.
Objects
The following objects describe payloads that are accepted or returned. See each individual endpoint for more information on when these objects are used.Entry
Represents an entry.
Attributes
The resource path of the request.
The name of the entry
The value of the entry.
IncrementEntryRequest
Increments entry value.
Attributes
The amount to increment by the entry value. If the input value exceeds the maximum value supported by int64, which is 9,223,372,036,854,775,807, the request fails with a 400 Bad Request error.
UpdateEntryRequest
Updates the entry provided with a new value.
Attributes
The value to update the entry. If the input value exceeds the maximum value supported by int64, which is 9,223,372,036,854,775,807, the request fails with a 400 Bad Request error.
CreateEntryRequest
Creates a new entry with the value provided.
Attributes
The value to set the new entry. If the input value exceeds the maximum value supported by int64, which is 9,223,372,036,854,775,807, the request fails with a 400 Bad Request error.
ListEntriesResponse
A list of Entries in the parent collection.
Attributes
The Entries from the specified Scope.
A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.