So if datastores can still be edited outside of Roblox (say, by a Discord bot), how would it get permission to do so?
Great update, Roblox! I was planning on using the API’s one day. Thank you for continuously making updates for the platform, and have a great day!
There are things called “API Keys”, which gives an HTTP (or HTTPS) request to access data which is not accessible to users otherwise. If you want to make something yourself, you can go onto this website to create your own API key!
Got it, thanks! I’m pretty unfamiliar with web development, thanks for clearing things up.
Hey there eatablerock,
Yep, as others have mentioned, calls to the Data Stores Open Cloud endpoints are protected by an API Key. There’s some useful information on this documentation guide about how to use those. Give it a try!
Hi Mighty, I followed up in a DM!
You’re welcome, IcKon! Give them a try and feel free to come back here and relay any feedback to us
Hi PapiRootie, that’s an interesting idea! And something we’ve definitely heard about from devs before. Can you share what gameplay features you’re trying to achieve with the cross-universe Data Stores access?
is an instance/model serializing function, or other way of storing objects in datastores being looked into?
What does this mean? Are you removing the gamepersistence API? Or are you just encouraging developers to use the new API?
the api requires the api key, where i can get it?
You should be able to store an arbitrary JSON object in DataStoreEntry.value
. If you wanted, you could also store something like a serialized protobuf as a base64-encoded string. Does that address your use case or were you looking for some other kind of functionality?
We have a game called Fashion Famous, we would like users to be able to transfer their data to another version of the game for example, or we had a PC/Mobile version which where separate places
I’m not an expert with httpservice, but i’m fairly certain you could use it for something like this.
Although this would be a hastle, so I’m totally down for an update like this.
Hey PapiRootie, thanks for sharing! In your mind is this a one-time migration or are you considering using a single cross-universe Data Store permanently for multiple places?
One time migration! We have over 2B entries in the old game.
I’m under the assumption an API key is required for all open cloud actions.
This is pretty minor, but why is the update endpoint PATCH
instead of PUT
? At a user level, I feel like PATCH
communicates partial updates. Glad I read the docs first!
There is a problem with data-store IDs if they contain a “/”. The API cannot find such IDs because it interprets the “/” as a separator, which prevents data from being requested and results in a 404 error. This issue affects users of the DataStore2 module.