REST Resource: children
Stay organized with collections
Save and categorize content based on your preferences.
Resource: ChildReference
A reference to a folder's child.
Some resource methods (such as children.get
) require a childId
. Use the children.list
method to retrieve the ID of the child.
JSON representation |
{
"id": string,
"selfLink": string,
"kind": string,
"childLink": string
} |
Fields |
id |
string
The ID of the child.
|
selfLink |
string
Output only. A link back to this reference.
|
kind |
string
Output only. This is always drive#childReference .
|
childLink |
string
Output only. A link to the child.
|
Methods |
|
Removes a child from a folder. |
|
Gets a specific child reference. |
|
Inserts a file into a folder. |
|
Lists a folder's children. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-04-03 UTC.
[null,null,["Last updated 2025-04-03 UTC."],[],[],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. |"]]