Parents
Stay organized with collections
Save and categorize content based on your preferences.
For a list of methods for this resource, see the end of this page.
Resource representations
A reference to a file's parent.
{
"kind": "drive#parentReference",
"id": string,
"selfLink": string,
"parentLink": string,
"isRoot": boolean
}
Property name |
Value |
Description |
Notes |
kind |
string |
This is always drive#parentReference. |
|
id |
string |
The ID of the parent. |
|
selfLink |
string |
A link back to this reference. |
|
parentLink |
string |
A link to the parent. |
|
isRoot |
boolean |
Whether or not the parent is the root folder. |
|
Methods
- delete
- Removes a parent from a file.
- get
- Gets a specific parent reference.
- insert
- Adds a parent folder for a file.
- list
- Lists a file's parents.
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 2022-12-19 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]