DataStore

Attributi

pathstring
createTimestring
Solo output
idstring
Solo output
URL di base

https://apis.roblox.com
Risorsa 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_id}/data-stores
Campi
universe-datastores.control:list
RichiestaParametri percorso
universe_idstring
Necessario
Parametri query
maxPageSizenumber
pageTokenstring
filterstring
Risposta
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}'
Risposta

{
"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_id}/data-stores:snapshot
Campi
universe-datastores.control:snapshot
RichiestaParametri percorso
universe_idstring
Necessario
Corpo della richiesta
Risposta
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 '{}'
Risposta

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