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

Place

代表 Roblox 位空間。

特性

pathstring

空間方的資源路徑。

格式:universes/{universe_id}/places/{place_id}.

createTimestring
僅限輸出

地方被創建時的時戳。. 此字串的格式為 Timestamp

updateTimestring
僅限輸出

地方更新的時戳。. 此字串的格式為 Timestamp

displayNamestring

空間點的名稱。.

descriptionstring

地空間的說明。.

serverSizenumber

單一伺服器中允許的最大使用者數量。.

基本網址

https://apis.roblox.com
Place資源

{
"path": "universes/123/places/123",
"createTime": "2023-07-05T12:34:56Z",
"updateTime": "2023-07-05T12:34:56Z",
"displayName": "ROBLOX Battle [OPEN]",
"description": "OPEN SOURCE! \n Feel free to check out how we made this game and ask us about it!",
"serverSize": "integer"
}

Place

Get Place

GET /cloud/v2/universes/{universe_id}/places/{place_id}

取得指定的空間。

請求路徑參數
universe_idstring
需要

宇宙ID。.

place_idstring
需要

地點ID。.

回應Place
GET /cloud/v2/universes/{universe_id}/places/{place_id}

curl -L -X GET 'https://apis.roblox.com/cloud/v2/universes/{universe_id}/places/{place_id}' \
-H 'x-api-key: {your-api-key}'
回應

{
"path": "universes/123/places/123",
"createTime": "2023-07-05T12:34:56Z",
"updateTime": "2023-07-05T12:34:56Z",
"displayName": "ROBLOX Battle [OPEN]",
"description": "OPEN SOURCE! \n Feel free to check out how we made this game and ask us about it!",
"serverSize": "integer"
}

Place

Update Place

PATCH /cloud/v2/universes/{universe_id}/places/{place_id}

更新指定的空間方。

範圍
universe.place:write
請求路徑參數
universe_idstring
需要

宇宙ID。.

place_idstring
需要

地點ID。.

查詢參數
updateMaskstring

要更新的字段列表。. 此字串的格式為 FieldMask

請求主體Place
回應Place
PATCH /cloud/v2/universes/{universe_id}/places/{place_id}

curl -L -X PATCH 'https://apis.roblox.com/cloud/v2/universes/{universe_id}/places/{place_id}?updateMask={string}' \
-H 'x-api-key: {your-api-key}' \
-H 'Content-Type: application/json' \
--data '{
"displayName": "ROBLOX Battle [OPEN]",
"description": "OPEN SOURCE! \n Feel free to check out how we made this game and ask us about it!",
"serverSize": "integer"
}'
回應

{
"path": "universes/123/places/123",
"createTime": "2023-07-05T12:34:56Z",
"updateTime": "2023-07-05T12:34:56Z",
"displayName": "ROBLOX Battle [OPEN]",
"description": "OPEN SOURCE! \n Feel free to check out how we made this game and ask us about it!",
"serverSize": "integer"
}