*เนื้อหานี้แปลโดยใช้ AI (เวอร์ชัน Beta) และอาจมีข้อผิดพลาด หากต้องการดูหน้านี้เป็นภาษาอังกฤษ ให้คลิกที่นี่

Place

แทนที่สถานที่ Roblox

คุณลักษณะ

pathstring

เส้นทางทรัพยากรของสถานที่

รูปแบบ: universes/{universe_id}/places/{place_id}.

createTimestring
เอาต์พุตเท่านั้น

เวลาที่สร้างสถานที่ ณ จุดนั้น. สตริงนี้มีรูปแบบประทับเวลา

updateTimestring
เอาต์พุตเท่านั้น

เวลาที่เกิดขึ้นที่สถานที่ถูกอัปเดต. สตริงนี้มีรูปแบบประทับเวลา

displayNamestring

ชื่อสถานที่.

descriptionstring

คำอธิบายของสถานที่.

serverSizenumber

จํานวนผู้ใช้สูงสุดที่อนุญาตในเซิร์ฟเวอร์เดียว.

URL หลัก

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
จำเป็นต้องมี

รหัสสถานที่.

การตอบกลับ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
จำเป็นต้องมี

รหัสสถานที่.

พารามิเตอร์คิวรี
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"
}