DataStore

Atributos

pathstring
createTimestring
Apenas saída
idstring
Apenas saída
URL base

https://apis.roblox.com/cloud
O recurso DataStore

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

DataStore

List Data Stores
Beta

GET /cloud/v2/universes/{universe}/data-stores
Escopos
universe-datastores.control:list
SolicitaçãoParâmetros de endereço
universestring
Obrigatório
Parâmetros da consulta
maxPageSizenumber
pageTokenstring
filterstring
Resposta
nextPageTokenstring
GET /cloud/v2/universes/{universe}/data-stores

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

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

DataStore

Snapshot Data Stores
Beta

POST /cloud/v2/universes/{universe}/data-stores:snapshot
Escopos
universe-datastores.control:snapshot
SolicitaçãoParâmetros de endereço
universestring
Obrigatório
Requisitar corpo
Resposta
newSnapshotTakenboolean
latestSnapshotTimestring
POST /cloud/v2/universes/{universe}/data-stores:snapshot

curl -L -X POST 'https://apis.roblox.com/cloud/v2/universes/{universe}/data-stores:snapshot' \
-H 'x-api-key: {your-api-key}' \
--data '{}'
Resposta

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