The photos space will sunset in early January 2018. Your users can continue to access Google Photos via the drive space by enabling the Google Photos folder in My Drive in the Drive client settings

Properties

For a list of methods for this resource, see the end of this page.

Resource representations

A key-value pair attached to a file that is either public or private to an application.

The following limits apply to file properties:

  • Maximum of 100 properties total per file
  • Maximum of 30 private properties per app
  • Maximum of 30 public properties
  • Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property.

{
  "kind": "drive#property",
  "etag": etag,
  "selfLink": string,
  "key": string,
  "visibility": string,
  "value": string
}
Property name Value Description Notes
kind string This is always drive#property.
etag etag ETag of the property.
key string The key of this property.
visibility string The visibility of this property.
value string The value of this property.

Methods

delete
Deletes a property.
get
Gets a property by its key.
insert
Adds a property to a file, or updates it if it already exists.
list
Lists a file's properties.
patch
Updates a property, or adds it if it doesn't exist. This method supports patch semantics.
update
Updates a property, or adds it if it doesn't exist.

Send feedback about...

Drive REST API v2
Drive REST API v2