*此内容使用人工智能(Beta)翻译,可能包含错误。若要查看英文页面,请点按 此处

Place

代表 Roblox 地场景。

属性

pathstring

场景方的资源路径。

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

createTimestring
仅输出

地方创建时的时戳。. 此字符串格式为 FieldMask

updateTimestring
仅输出

地方更新的时戳。. 此字符串格式为 FieldMask

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"
}