DataStore
Thuộc Tính
URL Cơ Sở
https://apis.roblox.com/cloud
Tài nguyên DataStore
{
"path": "universes/123/data-stores/some-data-store",
"createTime": "2023-07-05T12:34:56Z",
"id": "string"
}
DataStore
List Data Stores
GET /cloud/v2/universes/{universe}/data-stores
Phạm Viuniverse-datastores.control:list
Yêu CầuTham Số Đường DẫnPhản HồidataStoresarray<DataStore> 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}'
Phản Hồi
{
"dataStores": [
{
"path": "universes/123/data-stores/some-data-store",
"createTime": "2023-07-05T12:34:56Z",
"id": "string"
}
],
"nextPageToken": "string"
}
DataStore
Snapshot Data Stores
POST /cloud/v2/universes/{universe}/data-stores:snapshot
Phạm Viuniverse-datastores.control:snapshot
Yêu CầuTham Số Đường DẫnPhản HồinewSnapshotTakenboolean 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 '{}'
Phản Hồi
{
"newSnapshotTaken": true,
"latestSnapshotTime": "2023-07-05T12:34:56Z"
}