已命令數據儲存 (Beta)

*此內容是使用 AI(Beta 測試版)翻譯,可能含有錯誤。若要以英文檢視此頁面,請按一下這裡

OrderedDataStores

https://apis.roblox.com/ordered-data-stores

列表

GET /v1/universes/{universeId}/orderedDataStores/{orderedDataStore}/scopes/{scope}/entries

參數

universeId string
Path
需要
orderedDataStore string
Path
需要
scope string
Path
需要
max_page_size number
page_token string
order_by string
filter string

請求

curl

curl --location 'https://apis.roblox.com/ordered-data-stores/v1/universes/<universeId>/orderedDataStores/<orderedDataStore>/scopes/<scope>/entries' \
--header 'x-api-key: <insert-api-key>'

回應

200 - OK
好的
傳回: object
entries array<object>
nextPageToken string

創建

POST /v1/universes/{universeId}/orderedDataStores/{orderedDataStore}/scopes/{scope}/entries

參數

universeId string
Path
需要
orderedDataStore string
Path
需要
scope string
Path
需要
id string
需要
CreateEntryRequest
Body
需要

請求

curl

curl --location 'https://apis.roblox.com/ordered-data-stores/v1/universes/<universeId>/orderedDataStores/<orderedDataStore>/scopes/<scope>/entries?id=<id>' \
--header 'x-api-key: <insert-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"value": <long>
}'

回應

200 - OK
好的
傳回: object
id string
path string
value number

獲取

GET /v1/universes/{universeId}/orderedDataStores/{orderedDataStore}/scopes/{scope}/entries/{entry}

參數

universeId string
Path
需要
orderedDataStore string
Path
需要
scope string
Path
需要
entry string
Path
需要

請求

curl

curl --location 'https://apis.roblox.com/ordered-data-stores/v1/universes/<universeId>/orderedDataStores/<orderedDataStore>/scopes/<scope>/entries/<entry>' \
--header 'x-api-key: <insert-api-key>'

回應

200 - OK
好的
傳回: object
id string
path string
value number

刪除

DELETE /v1/universes/{universeId}/orderedDataStores/{orderedDataStore}/scopes/{scope}/entries/{entry}

參數

universeId string
Path
需要
orderedDataStore string
Path
需要
scope string
Path
需要
entry string
Path
需要

請求

curl

curl --location --request DELETE 'https://apis.roblox.com/ordered-data-stores/v1/universes/<universeId>/orderedDataStores/<orderedDataStore>/scopes/<scope>/entries/<entry>' \
--header 'x-api-key: <insert-api-key>'

回應

更新

PATCH /v1/universes/{universeId}/orderedDataStores/{orderedDataStore}/scopes/{scope}/entries/{entry}

參數

universeIdId string
Path
需要
orderedDataStore string
Path
需要
scope string
Path
需要
entry string
Path
需要
UpdateEntryRequest
Body
需要
allow_missing boolean

請求

curl

curl --location --request PATCH 'https://apis.roblox.com/ordered-data-stores/v1/universes/<universeId>/orderedDataStores/<orderedDataStore>/scopes/<scope>/entries/<entry>' \
--header 'x-api-key: <insert-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"value": <long>
}'

回應

200 - OK
好的
傳回: object
id string
path string
value number

增量

POST /v1/universes/{universeId}/orderedDataStores/{orderedDataStore}/scopes/{scope}/entries/{entry}:increment

參數

universeId string
Path
需要
orderedDataStore string
Path
需要
scope string
Path
需要
entry string
Path
需要
incrementEntryRequest
Body
需要

請求

curl

curl --location 'https://apis.roblox.com/ordered-data-stores/v1/universes/<universeId>/orderedDataStores/<orderedDataStore>/scopes/<scope>/entries/<entry>:increment' \
--header 'x-api-key: <insert-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"amount": <long>
}'

回應

200 - OK
好的
傳回: object
id string
path string
value number

物件

以下物件描述被接受或退回的負載。若要獲得更多關於物件使用時機的資訊,請查看個別終點。

CreateEntryRequest

特性

value number

Entry

特性

id string
path string
value number

IncrementEntryRequest

特性

amount number

ListEntriesResponse

特性

entries array<object>
nextPageToken string

UpdateEntryRequest

特性

value number