REST Resource: children
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:ChildReference
資料夾子項的參照。
部分資源方法 (例如 children.get
) 需要 childId
。使用 children.list
方法擷取子項的 ID。
JSON 表示法 |
{
"id": string,
"selfLink": string,
"kind": string,
"childLink": string
} |
欄位 |
id |
string
孩子的 ID。
|
selfLink |
string
僅供輸出。回傳至此參考資料的連結。
|
kind |
string
僅供輸出。這個值一律是 drive#childReference 。
|
childLink |
string
僅供輸出。子項的連結。
|
方法 |
|
從資料夾中移除孩子。 |
|
取得特定子項參照。 |
|
將檔案插入資料夾。 |
|
列出資料夾的子項。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],[],null,["# REST Resource: children\n\n- [Resource: ChildReference](#ChildReference)\n - [JSON representation](#ChildReference.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: ChildReference\n------------------------\n\nA reference to a folder's child.\n\nSome resource methods (such as `children.get`) require a `childId`. Use the `children.list` method to retrieve the ID of the child.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"selfLink\": string, \"kind\": string, \"childLink\": string } ``` |\n\n| Fields ||\n|-------------|--------------------------------------------------------------|\n| `id` | `string` The ID of the child. |\n| `selfLink` | `string` Output only. A link back to this reference. |\n| `kind` | `string` Output only. This is always `drive#childReference`. |\n| `childLink` | `string` Output only. A link to the child. |\n\n| Methods ------- ||\n|----------------------------------------------------------------------|----------------------------------|\n| ### [delete](/workspace/drive/api/reference/rest/v2/children/delete) | Removes a child from a folder. |\n| ### [get](/workspace/drive/api/reference/rest/v2/children/get) | Gets a specific child reference. |\n| ### [insert](/workspace/drive/api/reference/rest/v2/children/insert) | Inserts a file into a folder. |\n| ### [list](/workspace/drive/api/reference/rest/v2/children/list) | Lists a folder's children. |"]]