DataStore

特性

pathstring
createTimestring
僅限輸出
idstring
僅限輸出
基本網址

https://apis.roblox.com/cloud
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
範圍
universe-datastores.control:list
請求路徑參數
universestring
需要
查詢參數
maxPageSizenumber
pageTokenstring
filterstring
回應
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}'
回應

{
"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
範圍
universe-datastores.control:snapshot
請求路徑參數
universestring
需要
請求主體
回應
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 '{}'
回應

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