DataStore

특성

pathstring
createTimestring
출력 전용
idstring
출력 전용
기본 URL

https://apis.roblox.com
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_id}/data-stores
범위
universe-datastores.control:list
요청경로 매개 변수
universe_idstring
필수
쿼리 매개 변수
maxPageSizenumber
pageTokenstring
filterstring
응답
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}'
응답

{
"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_id}/data-stores:snapshot
범위
universe-datastores.control:snapshot
요청경로 매개 변수
universe_idstring
필수
요청 본문
응답
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 '{}'
응답

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