REST Resource: parents

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
id

string

The ID of the parent.

isRoot

boolean

Output only. Whether or not the parent is the root folder.

kind

string

Output only. This is always drive#parentReference.

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.