*Ce contenu est traduit en utilisant l'IA (Beta) et peut contenir des erreurs. Pour consulter cette page en anglais, clique ici.

DataStore

Attributs

pathstring
createTimestring
Sortie seule
idstring
Sortie seule
URL de base

https://apis.roblox.com
La ressource DataStore

{
"path": "universes/123/data-stores/some-data-store",
"createTime": "2023-07-05T12:34:56Z",
"id": "string"
}

DataStore

Liste des magasins de données
Bêta

GET /cloud/v2/universes/{universe_id}/data-stores
Périmètres d'application
universe-datastores.control:list
RequêteParamètres du chemin
universe_idstring
Requis
Paramètres de requête
maxPageSizenumber
pageTokenstring
filterstring
Réponse
nextPageTokenstring
GET /cloud/v2/universes/{universe_id}/data-stores

curl -L -X GET 'https://apis.roblox.com/cloud/v2/universes/{universe_id}/data-stores?maxPageSize=10&pageToken={string}&filter={string}' \
-H 'x-api-key: {your-api-key}'
Réponse

{
"dataStores": [
{
"path": "universes/123/data-stores/some-data-store",
"createTime": "2023-07-05T12:34:56Z",
"id": "string"
}
],
"nextPageToken": "string"
}

DataStore

Stockage des données d'instantané
Bêta

POST /cloud/v2/universes/{universe_id}/data-stores:snapshot
Périmètres d'application
universe-datastores.control:snapshot
RequêteParamètres du chemin
universe_idstring
Requis
Corps de la requête
Réponse
newSnapshotTakenboolean
latestSnapshotTimestring
POST /cloud/v2/universes/{universe_id}/data-stores:snapshot

curl -L -X POST 'https://apis.roblox.com/cloud/v2/universes/{universe_id}/data-stores:snapshot' \
-H 'x-api-key: {your-api-key}' \
-H 'Content-Type: application/json' \
--data '{}'
Réponse

{
"newSnapshotTaken": true,
"latestSnapshotTime": "2023-07-05T12:34:56Z"
}