#how to set datastore entry data using roblox cloud api
1 messages · Page 1 of 1 (latest)
its on my todo
You can send and receive the following request and response payloads to access and utilize your standard data stores. For information on properly handling API requests and the usage of the API, see Handling API Requests for Data Stores and the Usage Guide.
thank god
local HttpService = game:GetService("HttpService")
local universeId = 123456789
local apiKey = 123456789
local playerUserId = 123456789
local url = `https://apis.roblox.com/datastores/v1/universes/{universeId}/standard-datastores/datastore/entries/entry?datastoreName=Players&entryKey={playerUserId}`
local header = {x-api-key = apiKey}
local response = HttpService:GetAsync(url, true, header)
local data = HttpService:JSONDecode(response)
print(data)
i have not tested this but it might work
o yeah btw would GetAsync or SetAsync error while there there is a open session for an entry with your datastore module?
because right now im trying to work on a discord bot which is written in python that is able to update datastore entries
no the cloud service will bypass the lock
ah awesome