Resource: ParentReference
A reference to a file's parent.
A file can only have one parent folder; specifying multiple parents isn't supported.
Some resource methods (such as parents.get) require a parentId. Use the parents.list method to retrieve the ID for a parent.
| JSON representation |
|---|
{ "selfLink": string, "id": string, "isRoot": boolean, "kind": string, "parentLink": string } |
| Fields | |
|---|---|
selfLink |
Output only. A link back to this reference. |
id |
The ID of the parent. |
isRoot |
Output only. Whether or not the parent is the root folder. |
kind |
Output only. This is always |
parentLink |
Output only. A link to the parent. |
Methods |
|
|---|---|
|
Removes a parent from a file. |
|
Gets a specific parent reference. |
|
Adds a parent folder for a file. |
|
Lists a file's parents. |