*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 nơi của Roblox.

Thuộc Tính

pathstring

Con đường tài nguyên của nơi.

Đị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 nơi.

descriptionstring

Mô tả về nơi.

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

Nhận chỗ

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

Nhận được vị trí đượ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

Cập nhật nơi

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

Cập nhật nơi đượ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"
}