Sheets types
Type definitions referenced by Sheets queries and mutations.
AppendRowsInput
Section titled “AppendRowsInput”Input object.
| Field | Type | Description |
|---|---|---|
worksheetId |
String! |
— |
startColumn |
Int |
— |
rows |
[[CellInput!]!]! |
— |
expectedRevision |
Int |
— |
clientInstanceId |
String! |
— |
clientMutationId |
String! |
— |
ApplyWorkbookOperationsInput
Section titled “ApplyWorkbookOperationsInput”Input object.
| Field | Type | Description |
|---|---|---|
workbookId |
String! |
— |
commands |
[JSON!]! |
— |
expectedRevision |
Int |
— |
clientInstanceId |
String! |
— |
clientMutationId |
String! |
— |
Boolean
Section titled “Boolean”Scalar. The Boolean scalar type represents true or false.
CampaignsCatalogWorkbook
Section titled “CampaignsCatalogWorkbook”Object.
| Field | Type | Description |
|---|---|---|
id |
String! |
— |
title |
String! |
— |
updatedAt |
String! |
— |
worksheets |
[CampaignsCatalogWorksheet!]! |
— |
CampaignsCatalogWorksheet
Section titled “CampaignsCatalogWorksheet”Object.
| Field | Type | Description |
|---|---|---|
id |
String! |
— |
title |
String! |
— |
dataRowCount |
Int! |
Number of data rows below the header row. |
CampaignsPreviewColumn
Section titled “CampaignsPreviewColumn”Object.
| Field | Type | Description |
|---|---|---|
index |
Int! |
— |
label |
String! |
— |
suggestedRole |
String |
Auto-detected role: email, first_name, or last_name. |
CampaignsWorksheetPreview
Section titled “CampaignsWorksheetPreview”Object.
| Field | Type | Description |
|---|---|---|
worksheetId |
String! |
— |
workbookTitle |
String! |
— |
worksheetTitle |
String! |
— |
totalDataRows |
Int! |
— |
columns |
[CampaignsPreviewColumn!]! |
— |
rows |
[[String]!]! |
Sample data rows (stringified calculated values), one entry per column. |
Object.
| Field | Type | Description |
|---|---|---|
row |
Int! |
— |
column |
Int! |
— |
a1 |
String! |
— |
value |
JSON |
— |
formula |
String |
— |
style |
JSON! |
— |
updatedAt |
String! |
— |
CellInput
Section titled “CellInput”Input object.
| Field | Type | Description |
|---|---|---|
value |
JSON |
— |
formula |
String |
— |
style |
JSON |
— |
CellRange
Section titled “CellRange”Object.
| Field | Type | Description |
|---|---|---|
worksheetId |
String! |
— |
rowStart |
Int! |
— |
columnStart |
Int! |
— |
rowEnd |
Int! |
— |
columnEnd |
Int! |
— |
revision |
Int! |
— |
cells |
[Cell!]! |
— |
ClearRangeInput
Section titled “ClearRangeInput”Input object.
| Field | Type | Description |
|---|---|---|
worksheetId |
String! |
— |
rowStart |
Int! |
— |
columnStart |
Int! |
— |
rowEnd |
Int! |
— |
columnEnd |
Int! |
— |
expectedRevision |
Int |
— |
clientInstanceId |
String! |
— |
clientMutationId |
String! |
— |
CreateWorkbookInput
Section titled “CreateWorkbookInput”Input object.
| Field | Type | Description |
|---|---|---|
title |
String! |
— |
description |
String |
— |
locale |
String |
— |
timezone |
String |
— |
CreateWorksheetInput
Section titled “CreateWorksheetInput”Input object.
| Field | Type | Description |
|---|---|---|
workbookId |
String! |
— |
title |
String |
— |
expectedRevision |
Int |
— |
DeleteRowsInput
Section titled “DeleteRowsInput”Input object.
| Field | Type | Description |
|---|---|---|
worksheetId |
String! |
— |
rowStart |
Int! |
— |
rowCount |
Int! |
— |
expectedRevision |
Int |
— |
clientInstanceId |
String! |
— |
clientMutationId |
String! |
— |
GridMutationPayload
Section titled “GridMutationPayload”Object.
| Field | Type | Description |
|---|---|---|
success |
Boolean! |
— |
workbookId |
String! |
— |
worksheetId |
String! |
— |
revision |
Int! |
— |
idempotentReplay |
Boolean! |
— |
startRow |
Int |
— |
startColumn |
Int |
— |
endRow |
Int |
— |
endColumn |
Int |
— |
appendedRowCount |
Int |
— |
deletedRowCount |
Int |
— |
removed |
Int |
— |
ImportWorkbookInput
Section titled “ImportWorkbookInput”Input object. Imports an external spreadsheet (Excel .xlsx/.xls/.xlsm, OpenDocument .ods, CSV/TSV) into a new native workbook. Content is the base64-encoded file.
| Field | Type | Description |
|---|---|---|
filename |
String! |
Source filename; the extension selects the parser. |
title |
String |
Workbook title; defaults to the filename without its extension. |
contentBase64 |
String! |
— |
driveNodeId |
Int |
Drive node the content came from; reopening the same node returns the existing workbook. |
Scalar. The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
Scalar.
PageInfo
Section titled “PageInfo”Object.
| Field | Type | Description |
|---|---|---|
hasNextPage |
Boolean! |
— |
hasPreviousPage |
Boolean! |
— |
startCursor |
String |
— |
endCursor |
String |
— |
PublishedColumn
Section titled “PublishedColumn”Object.
| Field | Type | Description |
|---|---|---|
id |
String! |
— |
column |
Int! |
— |
role |
String! |
— |
PublishedColumnInput
Section titled “PublishedColumnInput”Input object.
| Field | Type | Description |
|---|---|---|
id |
String! |
— |
column |
Int! |
— |
role |
String! |
— |
PublishedRange
Section titled “PublishedRange”Object.
| Field | Type | Description |
|---|---|---|
id |
String! |
— |
workbookId |
String! |
— |
worksheetId |
String! |
— |
targetAudience |
String! |
— |
startRow |
Int! |
— |
endRow |
Int! |
— |
startColumn |
Int! |
— |
endColumn |
Int! |
— |
columns |
[PublishedColumn!]! |
— |
sourceRevision |
Int! |
— |
createdAt |
String! |
— |
expiresAt |
String |
— |
revokedAt |
String |
— |
active |
Boolean! |
— |
PublishedRangeRow
Section titled “PublishedRangeRow”Object.
| Field | Type | Description |
|---|---|---|
sourceRow |
Int! |
— |
values |
JSON! |
— |
PublishedRangeRowConnection
Section titled “PublishedRangeRowConnection”Object.
| Field | Type | Description |
|---|---|---|
snapshotId |
String! |
— |
sourceRevision |
Int! |
— |
schema |
JSON! |
— |
edges |
[PublishedRangeRowEdge!]! |
— |
pageInfo |
PageInfo! |
— |
totalCount |
Int! |
— |
PublishedRangeRowEdge
Section titled “PublishedRangeRowEdge”Object.
| Field | Type | Description |
|---|---|---|
cursor |
String! |
— |
node |
PublishedRangeRow! |
— |
PublishedRangeSnapshot
Section titled “PublishedRangeSnapshot”Object.
| Field | Type | Description |
|---|---|---|
id |
String! |
— |
grantId |
String! |
— |
sourceRevision |
Int! |
— |
schema |
JSON! |
— |
rowCount |
Int! |
— |
createdAt |
String! |
— |
PublishRangeInput
Section titled “PublishRangeInput”Input object.
| Field | Type | Description |
|---|---|---|
workbookId |
String! |
— |
worksheetId |
String! |
— |
startRow |
Int! |
— |
endRow |
Int! |
— |
startColumn |
Int! |
— |
endColumn |
Int! |
— |
columns |
[PublishedColumnInput!]! |
— |
expiresAt |
String |
— |
RowPage
Section titled “RowPage”Object.
| Field | Type | Description |
|---|---|---|
items |
[SpreadsheetRow!]! |
— |
startRow |
Int! |
— |
endRow |
Int! |
— |
hasNextPage |
Boolean! |
— |
revision |
Int! |
— |
ServiceHealth
Section titled “ServiceHealth”Object.
| Field | Type | Description |
|---|---|---|
status |
String! |
— |
service |
String! |
— |
timestamp |
String! |
— |
ShareWorksheetWithCampaignsInput
Section titled “ShareWorksheetWithCampaignsInput”Input object.
| Field | Type | Description |
|---|---|---|
ownerId |
String! |
— |
worksheetId |
String! |
— |
emailColumn |
Int! |
— |
firstNameColumn |
Int |
— |
lastNameColumn |
Int |
— |
SheetsOverview
Section titled “SheetsOverview”Object.
| Field | Type | Description |
|---|---|---|
workbooksCount |
Int! |
— |
recentEditAt |
String |
— |
SortDirection
Section titled “SortDirection”Enum. Sort direction for list queries.
| Value | Description |
|---|---|
ASC |
— |
DESC |
— |
SortInput
Section titled “SortInput”Input object. Generic sort specifier: a whitelisted field name plus a direction.
| Field | Type | Description |
|---|---|---|
field |
String! |
— |
direction |
SortDirection! |
— |
SpreadsheetRow
Section titled “SpreadsheetRow”Object.
| Field | Type | Description |
|---|---|---|
index |
Int! |
— |
cells |
[Cell!]! |
— |
String
Section titled “String”Scalar. The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
UpdateWorkbookInput
Section titled “UpdateWorkbookInput”Input object.
| Field | Type | Description |
|---|---|---|
title |
String |
— |
description |
String |
— |
locale |
String |
— |
timezone |
String |
— |
sourceDriveNodeId |
Int |
Link (or relink) the workbook to the Drive node it is saved as. |
expectedRevision |
Int |
— |
UpdateWorksheetInput
Section titled “UpdateWorksheetInput”Input object.
| Field | Type | Description |
|---|---|---|
title |
String |
— |
position |
Int |
— |
frozenRows |
Int |
— |
frozenColumns |
Int |
— |
expectedRevision |
Int |
— |
Workbook
Section titled “Workbook”Object.
| Field | Type | Description |
|---|---|---|
id |
String! |
— |
title |
String! |
— |
description |
String |
— |
locale |
String! |
— |
timezone |
String! |
— |
revision |
Int! |
— |
archivedAt |
String |
— |
recoveryNodeId |
Int |
— |
recoveryRevision |
Int |
— |
recoveryStatus |
String! |
— |
recoveredAt |
String |
— |
recoveryError |
String |
— |
recoveryAvailable |
Boolean! |
— |
sourceDriveNodeId |
Int |
Drive node this workbook was opened from / saved to (open-again matching). |
createdAt |
String! |
— |
updatedAt |
String! |
— |
worksheets |
[Worksheet!]! |
— |
WorkbookConnection
Section titled “WorkbookConnection”Object.
| Field | Type | Description |
|---|---|---|
edges |
[WorkbookEdge!]! |
— |
pageInfo |
PageInfo! |
— |
totalCount |
Int! |
— |
WorkbookEdge
Section titled “WorkbookEdge”Object.
| Field | Type | Description |
|---|---|---|
cursor |
String! |
— |
node |
Workbook! |
— |
WorkbookFilter
Section titled “WorkbookFilter”Input object.
| Field | Type | Description |
|---|---|---|
archived |
Boolean |
— |
WorkbookHistoryAvailability
Section titled “WorkbookHistoryAvailability”Object.
| Field | Type | Description |
|---|---|---|
undoOperationId |
String |
— |
redoOperationId |
String |
— |
WorkbookHistoryInput
Section titled “WorkbookHistoryInput”Input object.
| Field | Type | Description |
|---|---|---|
workbookId |
String! |
— |
operationId |
String! |
— |
expectedRevision |
Int! |
— |
clientInstanceId |
String! |
— |
clientMutationId |
String! |
— |
WorkbookOperationPayload
Section titled “WorkbookOperationPayload”Object.
| Field | Type | Description |
|---|---|---|
success |
Boolean! |
— |
workbookId |
String! |
— |
revision |
Int! |
— |
operationId |
String! |
— |
commandCount |
Int! |
— |
idempotentReplay |
Boolean! |
— |
WorkbookRecoveryRestoreInput
Section titled “WorkbookRecoveryRestoreInput”Input object.
| Field | Type | Description |
|---|---|---|
workbookId |
String! |
— |
expectedRevision |
Int! |
— |
clientInstanceId |
String! |
— |
clientMutationId |
String! |
— |
WorkbookRecoveryRestorePayload
Section titled “WorkbookRecoveryRestorePayload”Object.
| Field | Type | Description |
|---|---|---|
success |
Boolean! |
— |
workbook |
Workbook! |
— |
revision |
Int! |
— |
sourceRevision |
Int! |
— |
operationId |
String! |
— |
restoredWorksheetCount |
Int! |
— |
restoredCellCount |
Int! |
— |
idempotentReplay |
Boolean! |
— |
Worksheet
Section titled “Worksheet”Object.
| Field | Type | Description |
|---|---|---|
id |
String! |
— |
workbookId |
String! |
— |
title |
String! |
— |
position |
Int! |
— |
rowCount |
Int! |
— |
columnCount |
Int! |
— |
dataEndRow |
Int! |
— |
frozenRows |
Int! |
— |
frozenColumns |
Int! |
— |
createdAt |
String! |
— |
updatedAt |
String! |
— |
WriteRangeInput
Section titled “WriteRangeInput”Input object.
| Field | Type | Description |
|---|---|---|
worksheetId |
String! |
— |
startRow |
Int! |
— |
startColumn |
Int! |
— |
rows |
[[CellInput!]!]! |
— |
expectedRevision |
Int |
— |
clientInstanceId |
String! |
— |
clientMutationId |
String! |
— |