Instance

属性

pathstring
hasChildrenboolean
仅输出
engineInstanceobject
基本网址

https://apis.roblox.com/cloud
Instance 资源

{
"path": "universes/123/places/123/instances/0123456789abcdef0123456789abcdef",
"hasChildren": true,
"engineInstance": {
"Id": "string",
"Parent": "string",
"Name": "string",
"Details": {
"Folder": null
}
}
}

Instance

Get Instance
Beta

GET /cloud/v2/universes/{universe}/places/{place}/instances/{instance}
范围
universe.place.instance:read
请求路径参数
universestring
必填
placestring
必填
instancestring
必填
答复
答复Instance元数据
GET /cloud/v2/universes/{universe}/places/{place}/instances/{instance}

curl -L -X GET 'https://apis.roblox.com/cloud/v2/universes/{universe}/places/{place}/instances/{instance}' \
-H 'x-api-key: {your-api-key}'

Instance

Update Instance
Beta

PATCH /cloud/v2/universes/{universe}/places/{place}/instances/{instance}
范围
universe.place.instance:write
请求路径参数
universestring
必填
placestring
必填
instancestring
必填
查询参数
updateMaskstring
请求正文Instance
答复
答复Instance元数据
PATCH /cloud/v2/universes/{universe}/places/{place}/instances/{instance}

curl -L -X PATCH 'https://apis.roblox.com/cloud/v2/universes/{universe}/places/{place}/instances/{instance}?updateMask={string}' \
-H 'x-api-key: {your-api-key}' \
--data '{ \
"engineInstance": { \
"Id": "string", \
"Parent": "string", \
"Name": "string", \
"Details": { \
"Folder": null \
} \
} \
}'

Instance

List Instance Children
Beta

GET /cloud/v2/universes/{universe}/places/{place}/instances/{instance}:listChildren
范围
universe.place.instance:read
请求路径参数
universestring
必填
placestring
必填
instancestring
必填
查询参数
maxPageSizenumber
pageTokenstring
答复
答复
nextPageTokenstring
元数据
GET /cloud/v2/universes/{universe}/places/{place}/instances/{instance}:listChildren

curl -L -X GET 'https://apis.roblox.com/cloud/v2/universes/{universe}/places/{place}/instances/{instance}:listChildren?maxPageSize=100&pageToken={string}' \
-H 'x-api-key: {your-api-key}'