*Nội dung này được dịch bằng AI (Beta) và có thể có lỗi. Để xem trang này bằng tiếng Anh, hãy nhấp vào đây.

Place

Đại diện cho một địa điểmcủa Roblox.

Thuộc Tính

pathstring

Con đường tài nguyên của địa điểm.

Định dạng: universes/{universe_id}/places/{place_id}.

createTimestring
Chỉ Xuất

Thời gian chạy của nơi được tạo ra. Chuỗi này được định dạng là Dấu thời gian.

updateTimestring
Chỉ Xuất

Thời gian chỉnh sửa nơi tại mà nó được cập nhật. Chuỗi này được định dạng là Dấu thời gian.

displayNamestring

Tên của địa điểm.

descriptionstring

Mô tả về địa điểm.

serverSizenumber

Số người dùng tối đa được phép trong một máy chủ.

URL Cơ Sở

https://apis.roblox.com
Tài nguyên 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}

Nhận được vị địa điểmđược chỉ định.

Yêu CầuTham Số Đường Dẫn
universe_idstring
Bắt Buộc

ID của vũ trụ.

place_idstring
Bắt Buộc

ID nơi.

Phản HồiPlace
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}'
Phản Hồi

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

Cập nhật địa điểmđược chỉ định.

Phạm Vi
universe.place:write
Yêu CầuTham Số Đường Dẫn
universe_idstring
Bắt Buộc

ID của vũ trụ.

place_idstring
Bắt Buộc

ID nơi.

Tham Số Truy Vấn
updateMaskstring

Danh sách các trường để cập nhật. Chuỗi này được định dạng là Mặt nạ trường.

Yêu Cầu Cơ ThểPlace
Phản HồiPlace
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"
}'
Phản Hồi

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