Google Drive · Schema

Google Drive File

JSON Schema for a Google Drive file resource as returned by the Google Drive REST API v3.

Cloud StorageCollaborationDocument ManagementDriveFilesGoogleStorage

Properties

Name Type Description
id string The ID of the file.
name string The name of the file.
mimeType string The MIME type of the file.
parents array The IDs of the parent folders containing the file.
createdTime string The time at which the file was created.
modifiedTime string The last time the file was modified.
size string The size of the file's content in bytes.
trashed boolean Whether the file has been trashed.
starred boolean Whether the user has starred the file.
shared boolean Whether the file has been shared.
webViewLink string A link for opening the file in the relevant Google editor or viewer.
webContentLink string A link for downloading the content of the file.
iconLink string A static, unauthenticated link to the file's icon.
owners array The owners of the file.
View JSON Schema on GitHub

JSON Schema

google-drive-file-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/google-drive/refs/heads/main/json-schema/google-drive-file-schema.json",
  "title": "Google Drive File",
  "description": "JSON Schema for a Google Drive file resource as returned by the Google Drive REST API v3.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The ID of the file."
    },
    "name": {
      "type": "string",
      "description": "The name of the file."
    },
    "mimeType": {
      "type": "string",
      "description": "The MIME type of the file."
    },
    "parents": {
      "type": "array",
      "description": "The IDs of the parent folders containing the file.",
      "items": {
        "type": "string"
      }
    },
    "createdTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time at which the file was created."
    },
    "modifiedTime": {
      "type": "string",
      "format": "date-time",
      "description": "The last time the file was modified."
    },
    "size": {
      "type": "string",
      "description": "The size of the file's content in bytes."
    },
    "trashed": {
      "type": "boolean",
      "description": "Whether the file has been trashed."
    },
    "starred": {
      "type": "boolean",
      "description": "Whether the user has starred the file."
    },
    "shared": {
      "type": "boolean",
      "description": "Whether the file has been shared."
    },
    "webViewLink": {
      "type": "string",
      "format": "uri",
      "description": "A link for opening the file in the relevant Google editor or viewer."
    },
    "webContentLink": {
      "type": "string",
      "format": "uri",
      "description": "A link for downloading the content of the file."
    },
    "iconLink": {
      "type": "string",
      "format": "uri",
      "description": "A static, unauthenticated link to the file's icon."
    },
    "owners": {
      "type": "array",
      "description": "The owners of the file.",
      "items": {
        "type": "object",
        "properties": {
          "displayName": {"type": "string"},
          "emailAddress": {"type": "string"},
          "permissionId": {"type": "string"}
        }
      }
    }
  },
  "required": ["id", "name", "mimeType"]
}