已命令數據儲存 (Beta)
*此內容是使用 AI(Beta 測試版)翻譯,可能含有錯誤。若要以英文檢視此頁面,請按一下這裡。
此頁面包含與命令數據存取相關的參考文件。對於使用 API 的更多資訊,請參閱 處理 API 請求 for 數據存取 和 使用手冊。
OrderedDataStores
列表
返回已命商店 商家的資料存取。
參數
您想要存取的體驗具體資料的ID值。請參閱「<a href=\"#宇宙資料清單\">Universe ID</a>」。
命令指定資料商店 商家存的名稱。
數據存取範圍的名稱。請參閱鏡像。
要返傳回的最大輸入數量。服務可能會少於此值。預設值為 10 。最大值為 100 ,任何輸入超過 100 都被強制為 100 。
從以前的 List 呼叫中收到的頁面代幣。提供此參數來取回下一頁。當頁面發生時,所有提供給 List 的其他參數必須與呼叫提供頁面代幣相一致。
列表方向。 預設為上升。 輸入 desc 結尾以下降。
返傳回的資料的質量值範圍。請參閱 過濾器 。
請求
curl --location 'https://apis.roblox.com/ordered-data-stores/v1/universes/<universeId>/orderedDataStores/<orderedDataStore>/scopes/<scope>/entries' \
--header 'x-api-key: <insert-api-key>'
回應
創建
建立一個新的輸入,並提供指定的內容值。
參數
您想要存取的體驗具體資料的ID值。請參閱「<a href=\"#宇宙資料清單\">Universe ID</a>」。
命令的資料存取商店 商家的名稱。
數據存取範圍的名稱。請參閱鏡像。
項目的名稱。
建立一個新值的輸入。
請求
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>
}'
回應
獲取
取得並返回指定的項目。
參數
您想要存取的體驗具體資料的ID值。請參閱「<a href=\"#宇宙資料清單\">Universe ID</a>」。
命令的資料存取商店 商家的名稱。
數據存取範圍的名稱。請參閱鏡像。
入口 ID。
請求
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>'
回應
刪除
刪除指定的項目。
參數
您想要存取的體驗具體資料的ID值。請參閱「<a href=\"#宇宙資料清單\">Universe ID</a>」。
命令的資料存取商店 商家的名稱。
數據存取範圍的名稱。請參閱鏡像。
入口 ID。
請求
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>'
回應
更新
更新一個值,並且返回更新後的值。
請求
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>
}'
回應
增量
增加鑰匙的值提供的數量,並且返回更新的入力。
已知的問題:入力值可以超過有效範圍,這可能會在後端持續。 返回的值會壓縮到有效範圍。
參數
您想要存取的體驗具體資料的ID值。請參閱「<a href=\"#宇宙資料清單\">Universe ID</a>」。
命令的資料存取商店 商家的名稱。
數據存取範圍的名稱。請參閱鏡像。
入口 ID。
增加入值。
請求
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>
}'
回應
物件
以下物件描述被接受或退回的負載。若要獲得更多關於物件使用時機的資訊,請查看個別終點。
CreateEntryRequest
建立一個新值的輸入。
特性
設置新項目的值。如果輸入值超過 int64 所支持的最大值,即 9,223,372,036,854,775,807, 請求發生 400 個 Bad Request 錯誤。
Entry
代表一個入口。
特性
項目的名稱
請邀請的資源路徑。
值入值。
IncrementEntryRequest
增加入值。
特性
輸入值增加值。如果輸入值超過 int64 所支持的最大值,即 9,223,372,036,854,775,807, 請求會發生 400 個 Bad Request 錯誤。
ListEntriesResponse
一個父集中的項目收藏單。
特性
指定範圍的輸入。
一個代幣,可以發送為 page_token 來取回下一頁。如果此字段被省略,就沒有下一頁。
UpdateEntryRequest
更新提供的值。
特性
更新值。如果輸入值超過 int64 最大值,即 9,223,372,036,854,775,807, 請求會發生 400 個 Bad Request 錯誤。