Custom File Properties

You can use Drive API to add your own properties to a Drive file. These properties are stored as key/value pairs on the Drive file. Properties may be PUBLIC so all apps can see them, or PRIVATE so only the app that creates the property can see it.

Using properties will allow your app to store additional metadata on a file, such as tags, IDs from other data stores, viewing preferences etc. Public properties can be used to share metadata between applications, for example, in a workflow application.

This is the structure of a typical property that might be used to store your database's ID for a Drive file on the file itself.

  'key':        'additionalID',
  'value':      '8e8aceg2af2ge72e78',
  'visibility': 'PRIVATE'

Properties are accessed using the drive.properties resource, and can be created, fetched, updated, deleted, listed, and searched. For more information and examples, see drive.properties in the reference documentation.