The resource path of the instance.
Format: universes/{universe_id}/places/{place_id}/instances/{instance_id}.
Represents a data model instance.
The resource path of the instance.
Format: universes/{universe_id}/places/{place_id}/instances/{instance_id}.
whether the instance has any children instance.
the property details of the instance.
https://apis.roblox.com
{
"path": "universes/123/places/123/instances/0123456789abcdef0123456789abcdef",
"hasChildren": true,
"engineInstance": {
"Id": "string",
"Parent": "string",
"Name": "string",
"Details": {
"Folder": {}
}
}
}
Gets an instance and its property data.
The maximum supported response data size is 500,000 bytes. If this limit is exceeded, the returned Operation will be completed with an error result that has an error code of 422.
The universe ID.
The place ID.
The instance ID.
curl -L -X GET 'https://apis.roblox.com/cloud/v2/universes/{universe_id}/places/{place_id}/instances/{instance_id}' \
-H 'x-api-key: {your-api-key}'
Updates an instance's property data.
When updating a Script instance's source property, the maximum supported property size is 200,000 bytes after UTF-8 encoding.
The universe ID.
The place ID.
The instance ID.
The list of fields to update. 此字符串格式为 FieldMask。
curl -L -X PATCH 'https://apis.roblox.com/cloud/v2/universes/{universe_id}/places/{place_id}/instances/{instance_id}?updateMask={string}' \
-H 'x-api-key: {your-api-key}' \
-H 'Content-Type: application/json' \
--data '{
"engineInstance": {
"Id": "string",
"Parent": "string",
"Name": "string",
"Details": {
"Folder": {}
}
}
}'
Lists an instance's children.
The maximum supported response data size is 500,000 bytes. If this limit is exceeded, the returned Operation will be completed with an error result that has an error code of 422.
The universe ID.
The place ID.
The instance ID.
The maximum number of child instance to return. The service may return fewer than this value. If unspecified, at most 200 children will be returned. The maximum value is 200; values above 200 will be coerced to 200.
A page token, received from a previous ListInstanceChildrenRequest call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to ListInstanceChildrenRequest must match the call that provided the page token.
此方法是异步的,会返回一个Operation对象,该对象表示操作的当前状态。它包含一个端点路径,您可以轮询该路径以获取实际响应和相关的元数据。有关长时间运行操作的更多信息,请参阅文档。
以下部分描述了操作完成时提供的响应和元数据对象。
Returns a list of the instance's children.
A list of children instances.
.
A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.
无
curl -L -X GET 'https://apis.roblox.com/cloud/v2/universes/{universe_id}/places/{place_id}/instances/{instance_id}:listChildren?maxPageSize=100&pageToken={string}' \
-H 'x-api-key: {your-api-key}'