PrototypeSpreadsheets#
Endpoints to manage spreadsheets
ApplyBorders#
Apply borders to ranges
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
bottom |
The type of border that should be applied |
||
innerHorizontal |
The type of border that should be applied |
||
innerVertical |
The type of border that should be applied |
||
left |
The type of border that should be applied |
||
ranges |
[Range] |
The ranges to apply borders |
required |
right |
The type of border that should be applied |
||
top |
The type of border that should be applied |
Example#
{
"bottom": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
},
"innerHorizontal": {
"color": "#808080",
"style": "DASHED1",
"weight": 1
},
"innerVertical": {
"color": "#808080",
"style": "DASHED1",
"weight": 1
},
"left": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
},
"ranges": [
{
"startColumn": 0,
"startRow": 0,
"stopColumn": 3,
"stopRow": 3
}
],
"right": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
},
"top": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
}
}
PrototypeApplyFormats#
Apply formats to a list of ranges
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
cellFormat |
Cell Formats. Fields that are omitted will be ignored. |
||
clearValueFormatStyles |
boolean |
Whether the value format styles will be cleared from the cells when valueFormatType is included in the list of applied value formats. When cleared, a specific value format type can be set on cells that previously used value format styles. |
|
ranges |
[Range] |
The ranges to format |
required |
textFormat |
Text formats. Fields that are omitted will be ignored. |
||
valueFormat |
Value Formats. Fields that are omitted will be ignored. |
Example#
{
"cellFormat": {
"backgroundColor": "#d0e0f0"
},
"clearValueFormatStyles": true,
"ranges": [
{
"startColumn": 0,
"startRow": 0,
"stopColumn": null,
"stopRow": 0
}
],
"textFormat": {
"bold": true
},
"valueFormat": {
"valueFormatType": "TEXT"
}
}
Border#
The type of border that should be applied
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
color |
A hex color code |
||
style |
string |
The type of border to apply |
required |
weight |
number¦null |
The thickness of the border, in points. Rounded to the nearest hundredth. |
Maximum: 10, Minimum: 0.25 |
Enumerated Values#
Property |
Value |
|---|---|
style |
|
style |
|
style |
|
style |
|
style |
|
style |
|
style |
|
Example#
{
"color": "#000000",
"style": "SINGLE",
"weight": 2
}
CellData#
Data in a cell
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
calculatedValue |
any |
String, numeric, or boolean value result value of the cell. If the cell is a formula, this value will be the calculated result. |
|
effectiveFormats |
Formats that could be directly applied or applied through inheritance. |
||
formats |
Formats on a cell |
||
value |
any |
String, numeric, or boolean value of the cell. If the cell is a formula, this value will be the formula string. |
Example#
{
"calculatedValue": 2,
"effectiveFormats": {
"cellFormat": {
"backgroundColor": "#d0e8ff",
"borders": {
"bottom": {
"color": "#000",
"style": "SINGLE",
"weight": 1
},
"left": {
"color": "#000",
"style": "SINGLE",
"weight": 1
},
"right": null,
"top": {
"color": "#000",
"style": "SINGLE",
"weight": 1
}
},
"horizontalAlign": "RIGHT",
"indent": {
"unit": "INCHES",
"value": 0
},
"leaderDots": null,
"textRotation": null,
"verticalAlign": "BOTTOM"
},
"textFormat": {
"bold": true,
"fontColor": "#000000",
"fontFamily": "Arial",
"fontSize": 10,
"italic": false,
"strikethrough": false,
"underline": false
},
"valueFormat": {
"currencySymbol": {
"currency": {
"code": "EUR",
"display": "SYMBOL"
},
"generic": null
},
"dateAbbreviateMonth": null,
"dateFormatString": null,
"dateUppercaseAll": null,
"displayZeroAs": "ZERO",
"enteredIn": "ONES",
"numbersAsWordsOptions": {
"capitalizeFirstWord": false,
"displayZeroAs": null
},
"percentSymbol": null,
"periodFormat": null,
"precision": {
"auto": false,
"value": 2
},
"prefix": "",
"showCurrencySymbol": true,
"showLeadingZero": true,
"showNumbersAsWords": false,
"showPositiveSign": false,
"showSignRoundedZero": false,
"showThousandsSeparator": true,
"shownIn": "ONES",
"suffix": "",
"symbolAlign": "SYMBOL DEFAULT",
"useParensForNegatives": false,
"valueFormatType": "CURRENCY"
}
},
"formats": {
"cellFormat": {
"backgroundColor": "#d0e8ff",
"borders": {
"bottom": {
"color": "#000",
"style": "SINGLE",
"weight": 1
},
"left": {
"color": "#000",
"style": "SINGLE",
"weight": 1
},
"right": null,
"top": {
"color": "#000",
"style": "SINGLE",
"weight": 1
}
},
"horizontalAlign": null,
"indent": null,
"leaderDots": null,
"textRotation": null,
"verticalAlign": null
},
"textFormat": {
"bold": true,
"fontColor": null,
"fontFamily": null,
"fontSize": null,
"italic": null,
"strikethrough": null,
"underline": null
},
"valueFormat": {
"currencySymbol": {
"currency": {
"code": "EUR",
"display": "SYMBOL"
},
"generic": null
},
"dateAbbreviateMonth": null,
"dateFormatString": null,
"dateUppercaseAll": null,
"displayZeroAs": "ZERO",
"enteredIn": "ONES",
"numbersAsWordsOptions": {
"capitalizeFirstWord": false,
"displayZeroAs": null
},
"percentSymbol": null,
"periodFormat": null,
"precision": {
"auto": false,
"value": 2
},
"prefix": "",
"showCurrencySymbol": true,
"showLeadingZero": true,
"showNumbersAsWords": false,
"showPositiveSign": null,
"showSignRoundedZero": false,
"showThousandsSeparator": true,
"shownIn": "ONES",
"suffix": "",
"symbolAlign": null,
"useParensForNegatives": false,
"valueFormatType": "CURRENCY"
}
},
"value": "=1+1"
}
CellEdit#
A single cell edit
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
column |
integer |
The column of the cell to edit |
required, Minimum: 0 |
row |
integer |
The row of the cell to edit |
required, Minimum: 0 |
value |
any |
String, numeric, or boolean value |
required |
Example#
{
"column": 0,
"row": 0,
"value": "Alpha One"
}
CellFormat#
Cell Formats. Fields that are omitted will be ignored.
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
backgroundColor |
A hex color code |
||
borders |
object¦null |
The borders applied to a cell. Borders may be set by setting |
read-only |
borders.bottom |
The type of border that should be applied |
||
borders.left |
The type of border that should be applied |
||
borders.right |
The type of border that should be applied |
||
borders.top |
The type of border that should be applied |
||
horizontalAlign |
string¦null |
The horizontal alignment of the content in the cell |
|
indent |
object¦null |
Indentation of content in the cell |
|
indent.unit |
string |
The unit of the size |
required |
indent.value |
number |
The size of the indent |
required, Minimum: 0 |
leaderDots |
string¦null |
The leader dot pattern to show on the cell |
|
textRotation |
string¦null |
The text orientation |
|
verticalAlign |
string¦null |
The vertical alignment of the content in the cell |
Enumerated Values#
Property |
Value |
|---|---|
horizontalAlign |
|
horizontalAlign |
|
horizontalAlign |
|
horizontalAlign |
|
unit |
|
unit |
|
leaderDots |
|
leaderDots |
|
textRotation |
|
textRotation |
|
textRotation |
|
verticalAlign |
|
verticalAlign |
|
verticalAlign |
|
Example#
{
"backgroundColor": "#4bdf58",
"borders": {
"bottom": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
},
"left": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
},
"right": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
},
"top": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
}
},
"horizontalAlign": "LEFT",
"indent": {
"unit": "INCHES",
"value": 0
},
"leaderDots": "NARROW",
"textRotation": "HORIZONTAL",
"verticalAlign": "TOP"
}
ColumnMetadata#
Metadata about a column
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
hidden |
boolean¦null |
Whether the column is hidden |
|
size |
integer¦null |
The width of the column, in points |
Example#
{
"hidden": false,
"size": 75
}
EffectiveFormats#
Formats that could be directly applied or applied through inheritance.
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
cellFormat |
Cell Formats. Fields that are omitted will be ignored. |
||
textFormat |
Text formats. Fields that are omitted will be ignored. |
||
valueFormat |
Value Formats. Fields that are omitted will be ignored. |
Example#
{
"cellFormat": {
"backgroundColor": "#4bdf58",
"borders": {
"bottom": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
},
"left": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
},
"right": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
},
"top": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
}
},
"horizontalAlign": "LEFT",
"indent": {
"unit": "INCHES",
"value": 0
},
"leaderDots": "NARROW",
"textRotation": "HORIZONTAL",
"verticalAlign": "TOP"
},
"textFormat": {
"bold": true,
"fontColor": "#4bdf58",
"fontFamily": "Times New Roman",
"fontSize": 12,
"italic": true,
"strikethrough": true,
"underline": true
},
"valueFormat": {
"currencySymbol": {
"currency": {
"code": "AUD",
"display": "SYMBOL"
},
"generic": "DOLLAR"
},
"dateAbbreviateMonth": true,
"dateFormatString": "d/m/yyyy",
"dateUppercaseAll": true,
"displayZeroAs": "ZERO",
"enteredIn": "MILLIONTHS",
"numbersAsWordsOptions": {
"capitalizeFirstWord": false,
"displayZeroAs": "ZERO"
},
"percentSymbol": "NONE",
"periodFormat": {
"capitalizeFirstWord": false,
"display": "RAW",
"precision": null,
"separator": "NONE",
"showLabels": true,
"showNumbersAsWords": false
},
"precision": {
"auto": false,
"value": -15
},
"prefix": "string",
"showCurrencySymbol": true,
"showLeadingZero": true,
"showNumbersAsWords": true,
"showPositiveSign": true,
"showSignRoundedZero": true,
"showThousandsSeparator": true,
"shownIn": "MILLIONTHS",
"suffix": "string",
"symbolAlign": "SYMBOL DEFAULT",
"useParensForNegatives": true,
"valueFormatType": "AUTOMATIC"
}
}
Formats#
Formats on a cell
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
cellFormat |
Cell Formats. Fields that are omitted will be ignored. |
||
textFormat |
Text formats. Fields that are omitted will be ignored. |
||
valueFormat |
Value Formats. Fields that are omitted will be ignored. |
Example#
{
"cellFormat": {
"backgroundColor": "#4bdf58",
"borders": {
"bottom": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
},
"left": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
},
"right": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
},
"top": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
}
},
"horizontalAlign": "LEFT",
"indent": {
"unit": "INCHES",
"value": 0
},
"leaderDots": "NARROW",
"textRotation": "HORIZONTAL",
"verticalAlign": "TOP"
},
"textFormat": {
"bold": true,
"fontColor": "#4bdf58",
"fontFamily": "Times New Roman",
"fontSize": 12,
"italic": true,
"strikethrough": true,
"underline": true
},
"valueFormat": {
"currencySymbol": {
"currency": {
"code": "AUD",
"display": "SYMBOL"
},
"generic": "DOLLAR"
},
"dateAbbreviateMonth": true,
"dateFormatString": "d/m/yyyy",
"dateUppercaseAll": true,
"displayZeroAs": "ZERO",
"enteredIn": "MILLIONTHS",
"numbersAsWordsOptions": {
"capitalizeFirstWord": false,
"displayZeroAs": "ZERO"
},
"percentSymbol": "NONE",
"periodFormat": {
"capitalizeFirstWord": false,
"display": "RAW",
"precision": null,
"separator": "NONE",
"showLabels": true,
"showNumbersAsWords": false
},
"precision": {
"auto": false,
"value": -15
},
"prefix": "string",
"showCurrencySymbol": true,
"showLeadingZero": true,
"showNumbersAsWords": true,
"showPositiveSign": true,
"showSignRoundedZero": true,
"showThousandsSeparator": true,
"shownIn": "MILLIONTHS",
"suffix": "string",
"symbolAlign": "SYMBOL DEFAULT",
"useParensForNegatives": true,
"valueFormatType": "AUTOMATIC"
}
}
HexColor#
A hex color code
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
anonymous |
string¦null |
A hex color code |
Example#
"#4bdf58"
InheritFrom#
Where to inherit formats from when performing an insertion
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
anonymous |
string |
Where to inherit formats from when performing an insertion |
Enumerated Values#
Property |
Value |
|---|---|
anonymous |
|
anonymous |
|
anonymous |
|
Example#
"NONE"
Insertion#
Insertion instruction. Describes how to insert a block of rows or columns.
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
count |
integer |
The number of rows or columns to insert |
required, Minimum: 1 |
index |
integer |
The index to insert at |
required, Minimum: 0 |
Example#
{
"count": 1,
"index": 0
}
Interval#
An interval of rows or columns. If either the start or end is null or omitted, the interval is unbounded in that direction.
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
end |
integer¦null |
The last index of the interval, inclusive |
Minimum: 0 |
start |
integer¦null |
The first index of the interval, inclusive |
Minimum: 0 |
Example#
{
"end": 0,
"start": 0
}
PlatformSpreadsheetExport#
Details about a spreadsheet export.
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
csvOptions |
Optional options to export the spreadsheet as a comma-separated values (.CSV) file. If no options are provided, |
||
format |
string |
The file format to export the spreadsheet as. |
required |
pdfOptions |
Optional options to export the spreadsheet as a portable document file (.PDF). If no options are provided, all options default to False except: |
||
sheets |
[string] |
The IDs of the sheets within the spreadsheet to export. Omit to export the entire spreadsheet. |
|
xlsxOptions |
Optional options to export the spreadsheet as a Microsoft Excel (.XLSX) file. If no options are provided, |
Enumerated Values#
Property |
Value |
|---|---|
format |
|
format |
|
format |
|
Example#
{
"format": "xlsx",
"sheets": [
"7c8d8c4a46784455bg68t36f9d8232d8",
"54bgd83b471e5902f1a8e8c9a299c9fb"
],
"xlsxOptions": {
"exportAsFormulas": true,
"exportPrecision": "displayed"
}
}
PlatformSpreadsheetToCsvOptions#
Optional options to export the spreadsheet as a comma-separated values (.CSV) file. If no options are provided, exportAsFormulas defaults to False.
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
exportAsFormulas |
boolean |
Whether to export cells containing formulas as the formula or the formula result. False by default. |
Example#
{
"exportAsFormulas": true
}
PlatformSpreadsheetToPdfOptions#
Optional options to export the spreadsheet as a portable document file (.PDF). If no options are provided, all options default to False except:
pageHeight, which defaults to 11pageWidth, which defaults to 8.5pageOrientation, which defaults to “portrait”pageScale, which defaults to “actualSize”
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
includeComments |
boolean |
Whether to include comments when exporting to .PDF False by default. |
|
includeDraftWatermark |
boolean |
Whether to include draft watermark when exporting to .PDF. False by default. |
|
includeHyperlinks |
boolean |
Whether to include hyperlinks when exporting to .PDF. False by default. |
|
includeLeaderDots |
boolean |
Whether to include leader dots when exporting to .PDF. False by default. |
|
includeTrackChanges |
boolean |
Whether to include track changes when exporting to .PDF. False by default. |
|
onlyExportPrintAreas |
boolean |
Whether to only export print areas when exporting to .PDF. False by default. |
|
pageHeight |
number(double) |
The height of the exported .PDF, in inches. 11 by default. |
Maximum: 100, Minimum: 3 |
pageOrientation |
string |
The orientation of the exported .PDF, such as “portrait” or “landscape”. “portrait” by default. |
|
pageScale |
string |
The scale of the exported .PDF. “actualSize” by default. |
|
pageWidth |
number(double) |
The width of the exported .PDF, in inches. 8.5 by default. |
Maximum: 100, Minimum: 3 |
showCellFills |
boolean |
Whether to show cell fills when exporting to .PDF. False by default. |
|
showGridlines |
boolean |
Whether to show gridlines when exporting to .PDF. False by default. |
|
useCmykColorspace |
boolean |
Whether to use CMYK colorspace when exporting to .PDF. False by default. |
Enumerated Values#
Property |
Value |
|---|---|
pageOrientation |
|
pageOrientation |
|
pageScale |
|
pageScale |
|
Example#
{
"includeComments": true,
"includeDraftWatermark": true,
"includeHyperlinks": true,
"includeLeaderDots": true,
"includeTrackChanges": true,
"onlyExportPrintAreas": true,
"pageHeight": 14,
"pageOrientation": "landscape",
"pageScale": "fitToWidth",
"pageWidth": 11,
"showCellFills": true,
"showGridlines": true,
"useCmykColorspace": true
}
PlatformSpreadsheetToXlsxOptions#
Optional options to export the spreadsheet as a Microsoft Excel (.XLSX) file. If no options are provided, exportAsFormulas defaults to False, and exportPrecision defaults to fullPrecision.
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
exportAsFormulas |
boolean |
Whether to export cells that contain formulas as the formula or its result when exporting to .XLSX. False by default. |
|
exportPrecision |
string |
How to export values in the sheet when exporting to .XLSX “fullPrecision” by default. |
Enumerated Values#
Property |
Value |
|---|---|
exportPrecision |
|
exportPrecision |
|
exportPrecision |
|
Example#
{
"exportAsFormulas": true,
"exportPrecision": "displayed"
}
PrototypeSheet#
Details about the sheet, including its ID and name.
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
children |
An array of partial information about any child sheets |
read-only |
|
customFields |
any |
A map of ids to values representing Custom Fields on the sheet. |
|
dataset |
Dataset¦null |
The range of the dataset on this sheet, if one exists. |
read-only |
id |
string |
The unique identifier of the sheet |
|
index |
integer |
The integer index of the sheet relative to its parent sheet or to the spreadsheet, if no parent sheet. To position a sheet at the end of its siblings, use the special value -1. |
|
lock |
SheetLockType¦null |
The type of lock applied to this sheet, if any. Note this property is not tied to revision and will always reflect the sheet’s current lock state. |
|
name |
string |
The name of the sheet |
|
parent |
PrototypeSheet¦null |
The sheet’s ID and name |
|
revision |
string |
The revision of the sheet |
read-only |
table |
A reference to table content in a document, spreadsheet, or presentation |
Example#
{
"children": [
{
"id": "27f1b61c04ae4b0991bc73c631914e1d",
"name": "Q1"
}
],
"customFields": null,
"dataset": {
"range": "A1:B2"
},
"id": "27f1b61c04ae4b0991bc73c631914e1d",
"index": 1,
"lock": "lock",
"name": "Q1",
"parent": {
"id": "27f1b61c04ae4b0991bc73c631914e1d",
"name": "Q1"
},
"revision": "24601abc",
"table": {
"location": "<opaque_url>",
"revision": "2B3C4D5E",
"table": "WA7i5vbm7lNaEn6XT97lNaEn6XT9AtcW5vb22BJjMrqxmrujMrqxmru"
}
}
PrototypeSheetsListResult#
Returns a JSON object with data and @nextLink properties. data contains a list of Sheet objects, and @nextLink provides the URL to the next set of results. If there are no additional results, @nextLink doesn’t appear. If the request returns no results at all, data contains an empty array.
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
@nextLink |
string |
Pagination link for next set of results |
|
data |
Details about the sheet, including its ID and name. |
required |
Example#
{
"@nextLink": "<opaque_url>",
"data": [
{
"children": [
null
],
"customFields": null,
"dataset": {
"range": "A1:B2",
"sheet": "27f1b61c04ae4b0991bc73c631914e1d",
"values": [
[
1,
4
],
[
2,
""
]
]
},
"id": "27f1b61c04ae4b0991bc73c631914e1d",
"index": 1,
"lock": "lock",
"name": "Q1",
"parent": null,
"revision": "24601abc",
"table": {
"location": "<opaque_url>",
"revision": "2B3C4D5E",
"table": "WA7i5vbm7lNaEn6XT97lNaEn6XT9AtcW5vb22BJjMrqxmrujMrqxmru"
}
}
]
}
PrototypeSpreadsheet#
Details about the spreadsheet, including its ID, name, and milestone dates.
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
created |
When the action was performed, and details about the user who did it |
read-only |
|
customFieldGroups |
[string] |
An array of Custom Field Group IDs applied to the spreadsheet. |
|
customFields |
any |
A map of ids to values representing Custom Fields on the spreadsheet. |
|
id |
string |
The unique identifier of the spreadsheet |
read-only |
linksStatus |
Indicates the status for links in a document, presentation, or spreadsheet. |
read-only |
|
lock |
SpreadsheetLockType¦null |
The type of lock applied to this spreadsheet, if any. Note this property is not tied to revision and will always reflect the spreadsheet’s current lock state. |
|
modified |
When the action was performed, and details about the user who did it |
read-only |
|
name |
string |
The name of the spreadsheet |
read-only |
revision |
string |
The revision of the spreadsheet |
read-only |
sheetCustomFieldGroups |
[string] |
An array of Custom Field Group IDs applied to all sheets within the spreadsheet. |
|
template |
boolean |
Whether the spreadsheet is a template |
read-only |
Example#
{
"created": {
"dateTime": "2019-10-30T15:03:27Z",
"user": {
"id": "V1ZVd2VyFzU3NiQ1NDA4NjIzNzk2MjD"
}
},
"customFieldGroups": [
"string"
],
"customFields": null,
"id": "124efa2a142f472ba1ceab34ed18915f",
"linksStatus": {
"allLinks": "published",
"ownLinks": "published"
},
"lock": "locked",
"modified": {
"dateTime": "2019-10-30T15:03:27Z",
"user": {
"id": "V1ZVd2VyFzU3NiQ1NDA4NjIzNzk2MjD"
}
},
"name": "Year-end review",
"revision": "24601abc",
"sheetCustomFieldGroups": [
"string"
],
"template": false
}
PrototypeSpreadsheetFiltersReapplication#
A spreadsheet filter reapply operation, which can reapply filters to a spreadsheet and optionally ignore read-only filters.
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
ignoreNonEditableFilters |
boolean |
Skip filters that cannot be reapplied (due to not having edit permissions, locked sheets, or sheets in input mode) instead of returning an error. |
Example#
{
"ignoreNonEditableFilters": true
}
PrototypeSpreadsheetsListResult#
Returns a JSON object with data and @nextLink properties. data contains a list of PrototypeSpreadsheet objects, and @nextLink provides the URL to the next set of results. If there are no additional results, @nextLink doesn’t appear. If the request returns no results at all, data contains an empty array.
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
@nextLink |
string |
Pagination link for next set of results |
|
data |
Details about the spreadsheet, including its ID, name, and milestone dates. |
required |
Example#
{
"@nextLink": "<opaque_url>",
"data": [
{
"created": {
"dateTime": "2019-10-30T15:03:27Z",
"user": {
"displayName": "John Doe",
"email": "string",
"firstName": "John",
"id": "V1ZVd2VyFzU3NiQ1NDA4NjIzNzk2MjD",
"lastName": "Doe",
"userName": "string"
}
},
"customFieldGroups": [
"string"
],
"customFields": null,
"id": "124efa2a142f472ba1ceab34ed18915f",
"linksStatus": {
"allLinks": "published",
"ownLinks": "published"
},
"lock": "locked",
"modified": {
"dateTime": "2019-10-30T15:03:27Z",
"user": {
"displayName": "John Doe",
"email": "string",
"firstName": "John",
"id": "V1ZVd2VyFzU3NiQ1NDA4NjIzNzk2MjD",
"lastName": "Doe",
"userName": "string"
}
},
"name": "Year-end review",
"revision": "24601abc",
"sheetCustomFieldGroups": [
"string"
],
"template": false
}
]
}
Range#
A range in a sheet. If any field is omitted or null, the range is unbounded in that direction.
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
startColumn |
integer¦null |
The index of the first column of the range, inclusive |
Minimum: 0 |
startRow |
integer¦null |
The index of the first row of the range, inclusive |
Minimum: 0 |
stopColumn |
integer¦null |
The index of the last column of the range, inclusive |
Minimum: 0 |
stopRow |
integer¦null |
The index of the last row of the range, inclusive |
Minimum: 0 |
Example#
{
"startColumn": 0,
"startRow": 0,
"stopColumn": 0,
"stopRow": 0
}
RangeEditValues#
Row-major ordered two-dimensional array of cell values
Properties#
None
Example#
[
[
"Alpha One",
"Bravo One"
],
[
"Alpha Two",
"Bravo Two"
]
]
ResizeColumnIntervals#
Resize a list of column intervals to a specified size
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
intervals |
[Interval] |
The intervals of columns to resize |
required |
size |
integer |
The new size for the columns, in points |
required, Maximum: 10000, Minimum: 3 |
Example#
{
"intervals": [
{
"end": 3,
"start": 0
}
],
"size": 96
}
ResizeRowIntervals#
Resize a list of row intervals to a specified size
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
intervals |
[Interval] |
The intervals of rows to resize |
required |
size |
integer |
The new size for the rows, in points |
required, Maximum: 10000, Minimum: 3 |
Example#
{
"intervals": [
{
"end": 3,
"start": 0
}
],
"size": 24
}
RowMetadata#
Metadata about a row
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
filtered |
boolean¦null |
Whether the row is filtered |
|
hidden |
boolean¦null |
Whether the row is hidden |
|
size |
integer¦null |
The height of the row, in points |
Example#
{
"filtered": false,
"hidden": false,
"size": 16
}
Sheet#
Details about the sheet, including its ID and name.
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
children |
[Sheet] |
An array of partial information about any child sheets |
read-only |
dataset |
Dataset¦null |
The range of the dataset on this sheet, if one exists. |
read-only |
id |
string |
The unique identifier of the sheet |
|
index |
integer |
The integer index of the sheet relative to its parent sheet or to the spreadsheet, if no parent sheet. To position a sheet at the end of its siblings, use the special value -1. |
|
name |
string |
The name of the sheet |
|
parent |
Sheet¦null |
The sheet’s ID and name |
Example#
{
"children": [
{
"id": "27f1b61c04ae4b0991bc73c631914e1d",
"name": "Q1"
}
],
"dataset": {
"range": "A1:B2"
},
"id": "27f1b61c04ae4b0991bc73c631914e1d",
"index": 1,
"name": "Q1",
"parent": {
"id": "27f1b61c04ae4b0991bc73c631914e1d",
"name": "Q1"
}
}
SheetLockType#
A lock applied to a sheet.
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
anonymous |
string |
A lock applied to a sheet. |
Enumerated Values#
Property |
Value |
|---|---|
anonymous |
|
anonymous |
|
Example#
"lock"
SheetRef#
A reference to a sheet in a spreadsheet outline
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
location |
string¦null |
❗️ Deprecated: A URL that a GET request can be made against to retrieve this sheet |
read-only |
revision |
Identifies a unique revision of content. The same revision can be used for any content request within a file because revisions are allocated at the file-level. |
read-only |
|
sheet |
string |
The unique identifier of the sheet being referred to |
read-only |
spreadsheet |
string |
The unique identifier of the spreadsheet containing the sheet being referred to |
read-only |
Example#
{
"location": "<opaque_url>",
"revision": "2B3C4D5E",
"sheet": "16b1f641613847469b7aa1ca29af40b1_650855815308",
"spreadsheet": "16b1f641613847469b7aa1ca29af40b1"
}
SheetResponse#
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
data |
|||
request_id |
string |
A unique identifier for the request |
|
revision |
integer |
The revision number of this spreadsheet |
Example#
{
"data": {
"child_ids": [
"h65a604b74564afa86b5ba96755845652"
],
"id": "k78a604b74564afa76b5ba96755123456",
"index": 0,
"input_mode": false,
"locked": false,
"name": "Data Sheet",
"parent_id": "d10a604b74564afa86b5ba96755845652",
"restricted": false
},
"request_id": "d6a6ce3f-f120-4104-9587-a5a2dc45626c",
"revision": 0
}
SheetsListResult#
Returns a JSON object with data and @nextLink properties. data contains a list of Sheet objects, and @nextLink provides the URL to the next set of results. If there are no additional results, @nextLink doesn’t appear. If the request returns no results at all, data contains an empty array.
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
@nextLink |
string |
Pagination link for next set of results |
|
data |
[Sheet] |
Details about the sheet, including its ID and name. |
required |
Example#
{
"@nextLink": "<opaque_url>",
"data": [
{
"children": [
null
],
"dataset": {
"range": "A1:B2",
"sheet": "27f1b61c04ae4b0991bc73c631914e1d",
"values": [
[
1,
4
],
[
2,
""
]
]
},
"id": "27f1b61c04ae4b0991bc73c631914e1d",
"index": 1,
"name": "Q1",
"parent": null
}
]
}
SheetsResponse#
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
data |
|||
request_id |
string |
A unique identifier for the request |
|
revision |
integer |
The revision number of this spreadsheet |
Example#
{
"data": [
{
"child_ids": [
"h65a604b74564afa86b5ba96755845652"
],
"id": "k78a604b74564afa76b5ba96755123456",
"index": 0,
"input_mode": false,
"locked": false,
"name": "Data Sheet",
"parent_id": "d10a604b74564afa86b5ba96755845652",
"restricted": false
}
],
"request_id": "d6a6ce3f-f120-4104-9587-a5a2dc45626c",
"revision": 0
}
PrototypeSheetUpdate#
An update to a sheet. Only a single field on the SheetUpdate may be set per request.
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
applyBorders |
Apply list of border format requests to the sheet |
||
applyFormats |
Apply list of format requests to the sheet |
||
clearBorders |
Clears borders in ranges |
||
clearFormats |
Clear formats from ranges |
||
deleteColumns |
Delete columns from the sheet |
||
deleteRows |
Delete rows from the sheet |
||
editCells |
Edit a list of cells |
||
editRange |
Edit all of the cells in a contiguous range |
||
hideColumns |
Hide columns in the sheet |
||
hideRows |
Hide rows in the sheet |
||
insertColumns |
Insert columns into the sheet |
||
insertRows |
Insert rows into the sheet |
||
mergeRanges |
Merge ranges |
||
resizeColumns |
Resize columns to the specified size |
||
resizeColumnsToFit |
Auto-size columns to fit content |
||
resizeRows |
Resize rows to the specified size |
||
resizeRowsToFit |
Auto-size rows to fit content |
||
unhideColumns |
Unhide columns in the sheet |
||
unhideRows |
Unhide rows in the sheet |
||
unmergeRanges |
Unmerge merges that intersect the provided ranges |
Example#
{
"applyBorders": {
"borders": [
{
"bottom": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
},
"innerHorizontal": {
"color": "#808080",
"style": "DASHED1",
"weight": 1
},
"innerVertical": {
"color": "#808080",
"style": "DASHED1",
"weight": 1
},
"left": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
},
"ranges": [
{
"startColumn": 0,
"startRow": 0,
"stopColumn": 3,
"stopRow": 3
}
],
"right": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
},
"top": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
}
}
]
},
"applyFormats": {
"formats": [
{
"cellFormat": {
"backgroundColor": "#d0e0f0"
},
"ranges": [
{
"startColumn": 0,
"startRow": 0,
"stopColumn": null,
"stopRow": 0
}
],
"textFormat": {
"bold": true
},
"valueFormat": {
"valueFormatType": "TEXT"
}
}
]
},
"clearBorders": {
"ranges": [
{
"startColumn": 0,
"startRow": 0,
"stopColumn": 3,
"stopRow": 3
}
]
},
"clearFormats": {
"cellFormatFields": [
"*"
],
"ranges": [
{
"startColumn": 0,
"startRow": 0,
"stopColumn": null,
"stopRow": 0
}
],
"textFormatFields": [
"*"
],
"valueFormatFields": [
"*"
]
},
"deleteColumns": {
"force": true,
"intervals": [
{
"end": 3,
"start": 2
}
]
},
"deleteRows": {
"force": true,
"intervals": [
{
"end": 7,
"start": 5
}
]
},
"editCells": {
"cells": [
{
"column": 0,
"row": 0,
"value": "Alpha One"
},
{
"column": 1,
"row": 0,
"value": "Bravo One"
},
{
"column": 0,
"row": 1,
"value": "Alpha Two"
},
{
"column": 1,
"row": 1,
"value": "Bravo Two"
}
]
},
"editRange": {
"range": {
"startColumn": 0,
"startRow": 0,
"stopColumn": 1,
"stopRow": 1
},
"values": [
[
"Alpha One",
"Bravo One"
],
[
"Alpha Two",
"Bravo Two"
]
]
},
"hideColumns": {
"force": true,
"intervals": [
{
"end": 5,
"start": 4
}
]
},
"hideRows": {
"force": true,
"intervals": [
{
"end": 9,
"start": 7
}
]
},
"insertColumns": {
"inheritFrom": "BEFORE",
"insertions": [
{
"count": 1,
"index": 3
}
]
},
"insertRows": {
"inheritFrom": "BEFORE",
"insertions": [
{
"count": 2,
"index": 6
}
]
},
"mergeRanges": {
"force": true,
"mergeType": "HORIZONTAL",
"ranges": [
{
"startColumn": 0,
"startRow": 4,
"stopColumn": 1,
"stopRow": 7
}
]
},
"resizeColumns": {
"resizeIntervals": [
{
"intervals": [
{
"end": 3,
"start": 0
}
],
"size": 96
}
]
},
"resizeColumnsToFit": {
"intervals": [
{
"end": 3,
"start": 0
}
]
},
"resizeRows": {
"resizeIntervals": [
{
"intervals": [
{
"end": 3,
"start": 0
}
],
"size": 24
}
]
},
"resizeRowsToFit": {
"intervals": [
{
"end": 3,
"start": 0
}
]
},
"unhideColumns": {
"intervals": [
{
"end": 5,
"start": 4
}
]
},
"unhideRows": {
"intervals": [
{
"end": 9,
"start": 7
}
]
},
"unmergeRanges": {
"ranges": [
{
"startColumn": 0,
"startRow": 4,
"stopColumn": 1,
"stopRow": 7
}
]
}
}
SheetUpdateApplyBorders#
Apply list of border format requests to the sheet
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
borders |
The list of border formats to apply to the sheet |
required |
Example#
{
"borders": [
{
"bottom": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
},
"innerHorizontal": {
"color": "#808080",
"style": "DASHED1",
"weight": 1
},
"innerVertical": {
"color": "#808080",
"style": "DASHED1",
"weight": 1
},
"left": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
},
"ranges": [
{
"startColumn": 0,
"startRow": 0,
"stopColumn": 3,
"stopRow": 3
}
],
"right": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
},
"top": {
"color": "#000000",
"style": "SINGLE",
"weight": 2
}
}
]
}
PrototypeSheetUpdateApplyFormats#
Apply list of format requests to the sheet
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
formats |
The list of formats to apply to the sheet |
required |
Example#
{
"formats": [
{
"cellFormat": {
"backgroundColor": "#d0e0f0"
},
"ranges": [
{
"startColumn": 0,
"startRow": 0,
"stopColumn": null,
"stopRow": 0
}
],
"textFormat": {
"bold": true
},
"valueFormat": {
"valueFormatType": "TEXT"
}
}
]
}
SheetUpdateClearBorders#
Clears borders in ranges
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
ranges |
[Range] |
The ranges to clear borders |
required |
Example#
{
"ranges": [
{
"startColumn": 0,
"startRow": 0,
"stopColumn": 3,
"stopRow": 3
}
]
}
PrototypeSheetUpdateClearFormats#
Clear formats from ranges
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
cellFormatFields |
[string] |
List of CellFormat fields to clear. Use “*” to clear all fields. |
|
clearValueFormatStyles |
boolean |
Whether the value format styles will be cleared from the cells when valueFormatType is included in the list of value format fields to be cleared. The cells will have the Automatic value format and no value format styles when cleared. |
|
ranges |
[Range] |
The ranges to clear formats |
required |
textFormatFields |
[string] |
List of TextFormat fields to clear. Use “*” to clear all fields. |
|
valueFormatFields |
[string] |
List of ValueFormat fields to clear. Use “*” to clear all fields. |
Example#
{
"cellFormatFields": [
"*"
],
"ranges": [
{
"startColumn": 0,
"startRow": 0,
"stopColumn": null,
"stopRow": 0
}
],
"textFormatFields": [
"*"
],
"valueFormatFields": [
"*"
]
}
SheetUpdateDeleteColumns#
Delete columns from the sheet
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
force |
boolean |
Force the deletion of source links, xbrl facts, connections, etc |
|
intervals |
[Interval] |
An interval of rows or columns. If either the start or end is null or omitted, the interval is unbounded in that direction. |
required |
Example#
{
"force": true,
"intervals": [
{
"end": 3,
"start": 2
}
]
}
SheetUpdateDeleteRows#
Delete rows from the sheet
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
force |
boolean |
Force the deletion of source links, xbrl facts, connections, etc |
|
intervals |
[Interval] |
An interval of rows or columns. If either the start or end is null or omitted, the interval is unbounded in that direction. |
required |
Example#
{
"force": true,
"intervals": [
{
"end": 7,
"start": 5
}
]
}
SheetUpdateEditCells#
Edit a list of cells
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
cells |
[CellEdit] |
The cells to edit |
required |
options |
object¦null |
Edit cells options |
|
options.applyEnteredInScaling |
boolean |
Whether or not to apply |
|
options.skipEditMergeChildren |
boolean |
Whether or not to skip edits to merge child cells |
Example#
{
"cells": [
{
"column": 0,
"row": 0,
"value": "Alpha One"
},
{
"column": 1,
"row": 0,
"value": "Bravo One"
},
{
"column": 0,
"row": 1,
"value": "Alpha Two"
},
{
"column": 1,
"row": 1,
"value": "Bravo Two"
}
]
}
SheetUpdateEditRange#
Edit all of the cells in a contiguous range
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
options |
object¦null |
Edit range options |
|
options.applyEnteredInScaling |
boolean |
Whether or not to apply |
|
options.skipEditMergeChildren |
boolean |
Whether or not to skip edits to merge child cells |
|
range |
A range in a sheet. If any field is omitted or null, the range is unbounded in that direction. |
required |
|
values |
Row-major ordered two-dimensional array of cell values |
required |
Example#
{
"range": {
"startColumn": 0,
"startRow": 0,
"stopColumn": 1,
"stopRow": 1
},
"values": [
[
"Alpha One",
"Bravo One"
],
[
"Alpha Two",
"Bravo Two"
]
]
}
SheetUpdateHideColumns#
Hide columns in the sheet
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
force |
boolean |
Force the hiding of footnotes |
|
intervals |
[Interval] |
The intervals of columns to hide |
required |
Example#
{
"force": true,
"intervals": [
{
"end": 5,
"start": 4
}
]
}
SheetUpdateHideRows#
Hide rows in the sheet
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
force |
boolean |
Force the hiding of footnotes |
|
intervals |
[Interval] |
The intervals of rows to hide |
required |
Example#
{
"force": true,
"intervals": [
{
"end": 9,
"start": 7
}
]
}
SheetUpdateInsertColumns#
Insert columns into the sheet
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
inheritFrom |
Where to inherit formats from when performing an insertion |
required |
|
insertions |
List of column insertions |
required |
Example#
{
"inheritFrom": "BEFORE",
"insertions": [
{
"count": 1,
"index": 3
}
]
}
SheetUpdateInsertRows#
Insert rows into the sheet
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
inheritFrom |
Where to inherit formats from when performing an insertion |
required |
|
insertions |
List of row insertions |
required |
Example#
{
"inheritFrom": "BEFORE",
"insertions": [
{
"count": 2,
"index": 6
}
]
}
SheetUpdateMergeRanges#
Merge ranges
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
force |
boolean |
Force the merge through source links, xbrl facts, connections, etc |
|
mergeType |
string |
How cells should be merged |
|
ranges |
[Range] |
The ranges to merge |
required |
Enumerated Values#
Property |
Value |
|---|---|
mergeType |
|
mergeType |
|
mergeType |
|
Example#
{
"force": true,
"mergeType": "HORIZONTAL",
"ranges": [
{
"startColumn": 0,
"startRow": 4,
"stopColumn": 1,
"stopRow": 7
}
]
}
SheetUpdateResizeColumns#
Resize columns to the specified size
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
resizeIntervals |
array |
required |
Example#
{
"resizeIntervals": [
{
"intervals": [
{
"end": 3,
"start": 0
}
],
"size": 96
}
]
}
SheetUpdateResizeColumnsToFit#
Auto-size columns to fit content
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
intervals |
[Interval] |
The intervals of columns to resize |
required |
Example#
{
"intervals": [
{
"end": 3,
"start": 0
}
]
}
SheetUpdateResizeRows#
Resize rows to the specified size
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
resizeIntervals |
array |
required |
Example#
{
"resizeIntervals": [
{
"intervals": [
{
"end": 3,
"start": 0
}
],
"size": 24
}
]
}
SheetUpdateResizeRowsToFit#
Auto-size rows to fit content
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
intervals |
[Interval] |
The intervals of rows to resize |
required |
Example#
{
"intervals": [
{
"end": 3,
"start": 0
}
]
}
SheetUpdateUnhideColumns#
Unhide columns in the sheet
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
intervals |
[Interval] |
The intervals of columns to unhide |
required |
Example#
{
"intervals": [
{
"end": 5,
"start": 4
}
]
}
SheetUpdateUnhideRows#
Unhide rows in the sheet
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
intervals |
[Interval] |
The intervals of rows to unhide |
required |
Example#
{
"intervals": [
{
"end": 9,
"start": 7
}
]
}
SheetUpdateUnmergeRanges#
Unmerge merges that intersect the provided ranges
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
ranges |
[Range] |
The ranges to unmerge |
required |
Example#
{
"ranges": [
{
"startColumn": 0,
"startRow": 4,
"stopColumn": 1,
"stopRow": 7
}
]
}
SpreadsheetLockType#
The type of the spreadsheet lock.
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
anonymous |
string |
The type of the spreadsheet lock. |
Enumerated Values#
Property |
Value |
|---|---|
anonymous |
|
Example#
"locked"
SpreadsheetRef#
A reference to a spreadsheet
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
location |
string¦null |
❗️ Deprecated: A URL that a GET request can be made against to retrieve this spreadsheet |
read-only |
revision |
Identifies a unique revision of content. The same revision can be used for any content request within a file because revisions are allocated at the file-level. |
read-only |
|
spreadsheet |
string |
The unique identifier of the spreadsheet being referred to |
read-only |
Example#
{
"location": "<opaque_url>",
"revision": "2B3C4D5E",
"spreadsheet": "16b1f641613847469b7aa1ca29af40b1"
}
SpreadsheetResponse#
Response containing information on spreadsheet
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
data |
|||
message |
string |
Human readable descriptions of the response condition |
|
request_id |
string |
A unique identifier for the request |
|
revision |
integer |
The revision number of this spreadsheet |
Example#
{
"data": {
"created": "2020-04-30T13:59:49.294Z",
"id": "567nd179ed984eb5a52aaaba5f83a230",
"last_modified": "2020-04-30T13:59:52.003Z",
"locked": false,
"name": "Test Spreadsheet"
},
"message": "Operation successful",
"request_id": "d6a6ce3f-f120-4104-9587-a5a2dc45626c",
"revision": 0
}
TableRef#
A reference to table content in a document, spreadsheet, or presentation
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
location |
string¦null |
❗️ Deprecated: A URL that a GET request can be made against to retrieve this table |
read-only |
revision |
string |
The revision of the table being referred to |
read-only |
table |
The unique identifier of a table |
Example#
{
"location": "<opaque_url>",
"revision": "2B3C4D5E",
"table": "WA7i5vbm7lNaEn6XT97lNaEn6XT9AtcW5vb22BJjMrqxmrujMrqxmru"
}
TextFormat#
Text formats. Fields that are omitted will be ignored.
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
bold |
boolean¦null |
Text bold format |
|
fontColor |
A hex color code |
||
fontFamily |
string¦null |
Text font format |
|
fontSize |
number¦null |
Text font size, in points |
Maximum: 720, Minimum: 1 |
italic |
boolean¦null |
Text italic format |
|
strikethrough |
boolean¦null |
Text strikethrough format |
|
underline |
boolean¦null |
Text underline format |
Example#
{
"bold": true,
"fontColor": "#4bdf58",
"fontFamily": "Times New Roman",
"fontSize": 12,
"italic": true,
"strikethrough": true,
"underline": true
}
ValueFormat#
Value Formats. Fields that are omitted will be ignored.
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
currencySymbol |
object¦null |
The currency symbol to display. Valid for ACCOUNTING and CURRENCY. Either generic or currency should be set, but not both. |
|
currencySymbol.currency |
object¦null |
An ISO currency format |
|
currencySymbol.currency.code |
string¦null |
The ISO currency identifier |
required |
currencySymbol.currency.display |
string¦null |
How to display the currency. CODE simply displays the ISO currency code while SYMBOL displays the corresponding currency symbol. |
code |
currencySymbol.generic |
string¦null |
Generic currency options |
|
dateAbbreviateMonth |
boolean¦null |
Use month abbreviations instead of full month names. Valid for DATE. |
|
dateFormatString |
string¦null |
Format to use when rendering the date. Valid for DATE. |
Maximum length: 100 |
dateUppercaseAll |
boolean¦null |
Uppercase all characters in the date string. Valid for DATE. |
|
displayZeroAs |
string¦null |
The symbol to use for zero. Valid for ACCOUNTING, CURRENCY, NUMBER, and PERCENT. This field controls the symbol to use for zero when |
|
enteredIn |
string¦null |
The scale cell values are entered in. Valid for AUTOMATIC, ACCOUNTING, CURRENCY, and NUMBER. |
|
numbersAsWordsOptions |
object¦null |
Options relevant when showing numbers as words. Valid for ACCOUNTING, CURRENCY, NUMBER, and PERCENT. In order for these options to |
|
numbersAsWordsOptions.capitalizeFirstWord |
boolean¦null |
Capitalize the first word. Valid for ACCOUNTING, CURRENCY, NUMBER, and PERCENT. |
|
numbersAsWordsOptions.displayZeroAs |
string¦null |
The word to use for zero. Valid for ACCOUNTING, CURRENCY, NUMBER, and PERCENT. |
|
percentSymbol |
string¦null |
Render numbers with a percent symbol. Valid for PERCENT. |
|
periodFormat |
object¦null |
Options for formatting a duration string. Valid for PERIOD |
|
periodFormat.capitalizeFirstWord |
boolean¦null |
Capitalize the first word |
|
periodFormat.display |
string¦null |
Method of displaying the period value |
required |
periodFormat.precision |
integer¦null |
Precision to use when rounding decimal numbers for display. Renders with automatic precision if null. |
Maximum: 15, Minimum: 0 |
periodFormat.separator |
string¦null |
The separator to use between denominations if multiple are displayed |
|
periodFormat.showLabels |
boolean¦null |
Render a label after each denomination |
|
periodFormat.showNumbersAsWords |
boolean¦null |
Render the numbers as words instead of digits |
|
precision |
object¦null |
Precision to use when rounding numbers for display. Valid for AUTOMATIC, ACCOUNTING, CURRENCY, NUMBER, and PERCENT. |
|
precision.auto |
boolean¦null |
Render with automatic precision based on the value in the cell |
|
precision.value |
integer¦null |
Explicit precision value to use. Required unless auto is true. |
Maximum: 15, Minimum: -15 |
prefix |
string¦null |
Custom prefix value to render in the cell. Valid for ACCOUNTING, CURRENCY, NUMBER, PERCENT, and DATE. |
Maximum length: 100 |
showCurrencySymbol |
boolean¦null |
Render numbers with a currency symbol. Valid for ACCOUNTING and CURRENCY. |
|
showLeadingZero |
boolean¦null |
Include a leading zero for decimal numbers with no whole number part. Valid for ACCOUNTING, CURRENCY, NUMBER, and PERCENT. |
|
showNumbersAsWords |
boolean¦null |
Render the number as words instead of digits. Valid for ACCOUNTING, CURRENCY, NUMBER, and PERCENT. |
|
showPositiveSign |
boolean¦null |
Render the positive sign on numbers greater than zero. Valid for ACCOUNTING, CURRENCY, NUMBER, and PERCENT. |
|
showSignRoundedZero |
boolean¦null |
Render the sign on values rounded to zero. Valid for ACCOUNTING, CURRENCY, NUMBER, and PERCENT. |
|
showThousandsSeparator |
boolean¦null |
Render the thousands separator. Valid for ACCOUNTING, CURRENCY, NUMBER, and PERCENT. |
|
shownIn |
string¦null |
The scale cell values are displayed in. Valid for AUTOMATIC, ACCOUNTING, CURRENCY, and NUMBER. |
|
suffix |
string¦null |
Custom suffix value to render in the cell. Valid for ACCOUNTING, CURRENCY, NUMBER, PERCENT, and DATE. |
Maximum length: 100 |
symbolAlign |
string¦null |
Where to render the symbol relative to the value. All values valid for ACCOUNTING and CURRENCY. Left values valid for NUMBER. Right values valid for PERCENT. |
|
useParensForNegatives |
boolean¦null |
Render parentheses around the number instead of a negative symbol. Valid for ACCOUNTING, CURRENCY, NUMBER, and PERCENT. |
|
valueFormatType |
string¦null |
The value format type of the content. Setting this property will clear any other ValueFormat properties that are not valid for the new value format type. |
Enumerated Values#
Property |
Value |
|---|---|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
code |
|
display |
|
display |
|
display |
|
generic |
|
generic |
|
displayZeroAs |
|
displayZeroAs |
|
displayZeroAs |
|
displayZeroAs |
|
displayZeroAs |
|
enteredIn |
|
enteredIn |
|
enteredIn |
|
enteredIn |
|
enteredIn |
|
enteredIn |
|
enteredIn |
|
enteredIn |
|
enteredIn |
|
enteredIn |
|
enteredIn |
|
displayZeroAs |
|
displayZeroAs |
|
displayZeroAs |
|
displayZeroAs |
|
displayZeroAs |
|
displayZeroAs |
|
displayZeroAs |
|
displayZeroAs |
|
percentSymbol |
|
percentSymbol |
|
percentSymbol |
|
display |
|
display |
|
display |
|
display |
|
separator |
|
separator |
|
shownIn |
|
shownIn |
|
shownIn |
|
shownIn |
|
shownIn |
|
shownIn |
|
shownIn |
|
shownIn |
|
shownIn |
|
shownIn |
|
shownIn |
|
symbolAlign |
|
symbolAlign |
|
symbolAlign |
|
symbolAlign |
|
symbolAlign |
|
symbolAlign |
|
symbolAlign |
|
valueFormatType |
|
valueFormatType |
|
valueFormatType |
|
valueFormatType |
|
valueFormatType |
|
valueFormatType |
|
valueFormatType |
|
valueFormatType |
|
valueFormatType |
|
valueFormatType |
|
valueFormatType |
|
valueFormatType |
|
valueFormatType |
|
valueFormatType |
|
valueFormatType |
|
Example#
{
"currencySymbol": {
"currency": {
"code": "AUD",
"display": "SYMBOL"
},
"generic": "DOLLAR"
},
"dateAbbreviateMonth": true,
"dateFormatString": "d/m/yyyy",
"dateUppercaseAll": true,
"displayZeroAs": "ZERO",
"enteredIn": "MILLIONTHS",
"numbersAsWordsOptions": {
"capitalizeFirstWord": false,
"displayZeroAs": "ZERO"
},
"percentSymbol": "NONE",
"periodFormat": {
"capitalizeFirstWord": false,
"display": "RAW",
"precision": null,
"separator": "NONE",
"showLabels": true,
"showNumbersAsWords": false
},
"precision": {
"auto": false,
"value": -15
},
"prefix": "string",
"showCurrencySymbol": true,
"showLeadingZero": true,
"showNumbersAsWords": true,
"showPositiveSign": true,
"showSignRoundedZero": true,
"showThousandsSeparator": true,
"shownIn": "MILLIONTHS",
"suffix": "string",
"symbolAlign": "SYMBOL DEFAULT",
"useParensForNegatives": true,
"valueFormatType": "AUTOMATIC"
}