Creates a sheet from scratch or from the specified template in the specified folder.
folderId required | number Folder Id where you can create sheets, sights, reports, templates, and other folders. |
include | string Additional parameter to create a sheet from template. A comma-separated list of elements to copy from the template. |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
Content-Type | string Default: application/json Required for POST and PUT requests. Defines the structure for the request body. |
Sheet to create.
Array of objects | |
name | string Sheet name. |
{- "fromId": 0,
- "name": "string"
}
{- "message": "SUCCESS",
- "resultCode": 0,
- "result": {
- "accessLevel": "ADMIN",
- "columns": [
- {
- "autoNumberFormat": {
- "fill": "string",
- "prefix": "string",
- "startingNumber": 0,
- "suffix": "string"
}, - "contactOptions": [
- {
- "email": "string",
- "name": "string"
}
], - "description": "string",
- "format": "string",
- "formula": "string",
- "hidden": true,
- "id": 0,
- "index": 0,
- "locked": true,
- "lockedForUser": true,
- "options": [
- "string"
], - "primary": true,
- "symbol": "string",
- "systemColumnType": "AUTO_NUMBER",
- "tags": [
- "CALENDAR_END_DATE"
], - "title": "string",
- "type": "ABSTRACT_DATETIME",
- "validation": true,
- "version": 0,
- "width": 0
}
], - "id": 0,
- "name": "string",
- "permalink": "string"
}
}
Gets a list of all sheets that the user has access to. The list contains an abbreviated Sheet object for each sheet.
accessApiLevel | number Default: 0 Allows COMMENTER access for inputs and return values. For backwards-compatibility, VIEWER is the default. For example, to see whether a user has COMMENTER access for a sheet, use accessApiLevel=1. |
include | string A comma-separated list of optional elements to include in the response:
|
includeAll | boolean Default: false If true, include all results, that is, do not paginate. Mutually exclusive with page and pageSize (they are ignored if includeAll=true is specified). |
string or number When specified with a date and time value, response only includes the objects that are modified on or after the date and time specified. If you need to keep track of frequent changes, it may be more useful to use Get Sheet Version. | |
numericDates | boolean Default: false You can optionally choose to receive and send dates/times in numeric format, as milliseconds since the UNIX epoch (midnight on January 1, 1970 in UTC time), using the query string parameter numericDates with a value of true. This query parameter works for any API request. |
page | number Default: 1 Which page to return. Defaults to 1 if not specified. If you specify a value greater than the total number of pages, you'll receive an empty data set. |
pageSize | number Default: 100 The maximum number of items to return per page. Unless otherwise stated for a specific endpoint, defaults to 100. If only page is specified, defaults to a page size of 100. For reports, the default is 100 rows. If you need larger sets of data from your report, returns a maximum of 10,000 rows per request. |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl https://api.smartsheet.com/2.0/sheets \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789"
{- "pageNumber": 1,
- "pageSize": 50,
- "totalPages": 25,
- "totalCount": 136,
- "data": [
- {
- "id": 0,
- "accessLevel": "ADMIN",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "permalink": "string",
- "version": 0,
- "source": {
- "id": 0,
- "type": "string"
}
}
]
}
Creates a sheet from scratch or from the specified template in the user's Sheets folder (Home). For subfolders, use Create Sheet in Folder.
accessApiLevel | number Default: 0 Allows COMMENTER access for inputs and return values. For backwards-compatibility, VIEWER is the default. For example, to see whether a user has COMMENTER access for a sheet, use accessApiLevel=1. |
include | string Additional parameter to create a sheet from template. A comma-separated list of elements to copy from the template. |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
Content-Type | string Default: application/json Required for POST and PUT requests. Defines the structure for the request body. |
Sheet to create.
Array of objects | |
name | string Sheet name. |
{- "fromId": 0,
- "name": "string"
}
{- "message": "SUCCESS",
- "resultCode": 0,
- "result": {
- "accessLevel": "ADMIN",
- "columns": [
- {
- "autoNumberFormat": {
- "fill": "string",
- "prefix": "string",
- "startingNumber": 0,
- "suffix": "string"
}, - "contactOptions": [
- {
- "email": "string",
- "name": "string"
}
], - "description": "string",
- "format": "string",
- "formula": "string",
- "hidden": true,
- "id": 0,
- "index": 0,
- "locked": true,
- "lockedForUser": true,
- "options": [
- "string"
], - "primary": true,
- "symbol": "string",
- "systemColumnType": "AUTO_NUMBER",
- "tags": [
- "CALENDAR_END_DATE"
], - "title": "string",
- "type": "ABSTRACT_DATETIME",
- "validation": true,
- "version": 0,
- "width": 0
}
], - "id": 0,
- "name": "string",
- "permalink": "string"
}
}
Gets a sheet in the format specified, based on the sheet Id.
sheetId required | number Sheet Id of the sheet being accessed. |
accessApiLevel | number Default: 0 Allows COMMENTER access for inputs and return values. For backwards-compatibility, VIEWER is the default. For example, to see whether a user has COMMENTER access for a sheet, use accessApiLevel=1. |
include | string A comma-separated list of optional elements to include in the response:
|
exclude | string A comma-separated list of element types to exclude from the response:
|
columnIds | string A comma-separated list of column ids. The response contains only the specified columns in the "columns" array, and individual rows' "cells" array only contains cells in the specified columns. |
filterId | string Overrides the existing include={filters} parameter if both are supplied. Applies the given filter (if accessible by the calling user) and marks the affected rows as "filteredOut": true. |
ifVersionAfter | integer If version specified is still the current sheet version, then returns an abbreviated Sheet object with only the sheet version property. Otherwise, if the sheet has been modified, returns the complete Sheet object. Intended to allow clients with a cached copy to make sure they have the latest version. |
level | integer Default: 1 Specifies whether new functionality, such as multi-contact data is returned in a backwards-compatible, text format (level=0, default), multi-contact data (level=1), or multi-picklist data (level=2). |
pageSize | number Default: 100 The maximum number of items to return per page. Unless otherwise stated for a specific endpoint, defaults to 100. If only page is specified, defaults to a page size of 100. For reports, the default is 100 rows. If you need larger sets of data from your report, returns a maximum of 10,000 rows per request. |
page | number Default: 1 Which page to return. Defaults to 1 if not specified. If you specify a value greater than the total number of pages, you'll receive an empty data set. |
paperSize | string Default: "LETTER" applies to PDF format only |
rowIds | string A comma-separated list of row Ids on which to filter the rows included in the result. |
rowNumbers | string A comma-separated list of row numbers on which to filter the rows included in the result. Non-existent row numbers are ignored. |
string or number Filter to return only rows that have been modified since the date/time provided. Date should be in ISO-8601 format. Example: rowsModifiedSince=2020-01-30T13:25:32-07:00 |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
Accept | string The Accept request-header field can be used to specify certain media types which are acceptable for the response. |
// Sample 1: Get sheet curl https://api.smartsheet.com/2.0/sheets/{sheetId}?level=2&include=objectValue \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789" // Sample 2: Get sheet as Excel curl https://api.smartsheet.com/2.0/sheets/{sheetId} \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789" \ -H "Accept: application/vnd.ms-excel" \ -o output.xlsx // Sample 3: Get sheet as PDF curl 'https://api.smartsheet.com/2.0/sheets/{sheetId}?paperSize=A1' \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789" \ -H "Accept: application/pdf" -o output.pdf // Sample 4: Get sheet as CSV curl https://api.smartsheet.com/2.0/sheets/{sheetId} \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789" \ -H "Accept: text/csv" \ -o output.csv
{- "version": 0
}
Deletes the sheet specified in the URL.
sheetId required | number Sheet Id of the sheet being accessed. |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl https://api.smartsheet.com/2.0/sheets/{sheetId} \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789" \ -X DELETE
{- "message": "SUCCESS",
- "resultCode": 0
}
Updates the sheet specified in the URL. To modify sheet contents, see Add Rows, Update Rows, Add Columns, and Update Column. This operation can be used to update an individual user's sheet settings. If the request body contains only the userSettings attribute, this operation may be performed even if the user only has read-only access to the sheet (for example, the user has viewer permissions or the sheet is read-only).
sheetId required | number Sheet Id of the sheet being accessed. |
accessApiLevel | number Default: 0 Allows COMMENTER access for inputs and return values. For backwards-compatibility, VIEWER is the default. For example, to see whether a user has COMMENTER access for a sheet, use accessApiLevel=1. |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
Sheet object limited to the following attributes:
name | string Sheet name. |
object Represents the project settings dependencies for a specific sheet. Project settings may be updated on sheets that the user has editor access. | |
object Represents individual user settings for a specific sheet. User settings may be updated even on sheets where the current user only has read access (for example, viewer permissions or a read-only sheet). |
{- "name": "string",
- "projectSettings": {
- "lengthOfDay": 1,
- "nonWorkingDays": [
- "2019-08-24"
], - "workingDays": [
- "MONDAY"
]
}, - "userSettings": {
- "criticalPathEnabled": true,
- "displaySummaryTasks": true
}
}
{- "message": "SUCCESS",
- "resultCode": 0,
- "result": {
- "id": 0,
- "fromId": 0,
- "ownerId": 0,
- "accessLevel": "ADMIN",
- "attachments": [
- {
- "id": 0,
- "parentId": 0,
- "attachmentType": "BOX_COM",
- "attachmentSubType": "DOCUMENT",
- "mimeType": "PNG",
- "parentType": "COMMENT",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "name": "string",
- "sizeInKb": 0,
- "url": "string",
- "urlExpiresInMillis": 0
}
], - "cellImageUploadEnabled": true,
- "columns": [
- {
- "autoNumberFormat": {
- "fill": "string",
- "prefix": "string",
- "startingNumber": 0,
- "suffix": "string"
}, - "contactOptions": [
- {
- "email": "string",
- "name": "string"
}
], - "description": "string",
- "format": "string",
- "formula": "string",
- "hidden": true,
- "id": 0,
- "index": 0,
- "locked": true,
- "lockedForUser": true,
- "options": [
- "string"
], - "primary": true,
- "symbol": "string",
- "systemColumnType": "AUTO_NUMBER",
- "tags": [
- "CALENDAR_END_DATE"
], - "title": "string",
- "type": "ABSTRACT_DATETIME",
- "validation": true,
- "version": 0,
- "width": 0
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "crossSheetReferences": [
- {
- "endColumnId": 0,
- "endRowId": 0,
- "id": 0,
- "name": "string",
- "startColumnId": 0,
- "startRowId": 0,
- "status": "BLOCKED",
- "sourceSheetId": 0
}
], - "dependenciesEnabled": true,
- "discussions": [
- {
- "accessLevel": "ADMIN",
- "id": 0,
- "comments": [
- {
- "attachments": [
- {
- "id": null,
- "parentId": null,
- "attachmentType": null,
- "attachmentSubType": null,
- "mimeType": null,
- "parentType": null,
- "createdAt": null,
- "createdBy": null,
- "name": null,
- "sizeInKb": null,
- "url": null,
- "urlExpiresInMillis": null
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "discussionId": 0,
- "id": 0,
- "modifiedAt": "2019-08-24T14:15:22Z",
- "text": "string"
}
], - "commentAttachments": [
- {
- "id": 0,
- "parentId": 0,
- "attachmentType": "BOX_COM",
- "attachmentSubType": "DOCUMENT",
- "mimeType": "PNG",
- "parentType": "COMMENT",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "name": "string",
- "sizeInKb": 0,
- "url": "string",
- "urlExpiresInMillis": 0
}
], - "commentCount": 0,
- "createdBy": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "lastCommentedAt": "2019-08-24T14:15:22Z",
- "lastCommentedUser": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "parentId": 0,
- "parentType": "ROW",
- "readOnly": true,
- "title": "string"
}
], - "effectiveAttachmentOptions": [
- "string"
], - "favorite": true,
- "ganttEnabled": true,
- "hasSummaryFields": true,
- "isMultiPicklistEnabled": true,
- "modifiedAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "owner": "string",
- "permalink": "string",
- "projectSettings": {
- "lengthOfDay": 1,
- "nonWorkingDays": [
- "2019-08-24"
], - "workingDays": [
- "MONDAY"
]
}, - "readOnly": true,
- "resourceManagementEnabled": true,
- "resourceManagementType": "NONE",
- "rows": [
- {
- "id": 0,
- "sheetId": 0,
- "siblingId": 0,
- "accessLevel": "ADMIN",
- "attachments": [
- {
- "id": 0,
- "parentId": 0,
- "attachmentType": "BOX_COM",
- "attachmentSubType": "DOCUMENT",
- "mimeType": "PNG",
- "parentType": "COMMENT",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "name": "string",
- "sizeInKb": 0,
- "url": "string",
- "urlExpiresInMillis": 0
}
], - "cells": [
- {
- "columnId": 0,
- "columnType": "string",
- "conditionalFormat": "string",
- "displayValue": "string",
- "format": "string",
- "formula": "string",
- "hyperlink": {
- "reportId": 0,
- "sheetId": 0,
- "sightId": 0,
- "url": "string"
}, - "image": {
- "altText": "string",
- "height": 0,
- "id": "string",
- "width": 0
}, - "linkInFromCell": {
- "columnId": 0,
- "rowId": 0,
- "sheetId": 0,
- "sheetName": "string",
- "status": "BLOCKED"
}, - "linksOutToCells": [
- {
- "columnId": null,
- "rowId": null,
- "sheetId": null,
- "sheetName": null,
- "status": null
}
], - "objectValue": {
- "objectType": "ABSTRACT_DATETIME"
}, - "overrideValidation": true,
- "strict": true,
- "value": "string"
}
], - "columns": [
- {
- "autoNumberFormat": {
- "fill": "string",
- "prefix": "string",
- "startingNumber": 0,
- "suffix": "string"
}, - "contactOptions": [
- {
- "email": null,
- "name": null
}
], - "description": "string",
- "format": "string",
- "formula": "string",
- "hidden": true,
- "id": 0,
- "index": 0,
- "locked": true,
- "lockedForUser": true,
- "options": [
- "string"
], - "primary": true,
- "symbol": "string",
- "systemColumnType": "AUTO_NUMBER",
- "tags": [
- "CALENDAR_END_DATE"
], - "title": "string",
- "type": "ABSTRACT_DATETIME",
- "validation": true,
- "version": 0,
- "width": 0
}
], - "conditionalFormat": ",,1,1,,,,,,,,,,,,,",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "discussions": [
- {
- "accessLevel": "ADMIN",
- "id": 0,
- "comments": [
- {
- "attachments": [ ],
- "createdAt": null,
- "createdBy": { },
- "discussionId": null,
- "id": null,
- "modifiedAt": null,
- "text": null
}
], - "commentAttachments": [
- {
- "id": null,
- "parentId": null,
- "attachmentType": null,
- "attachmentSubType": null,
- "mimeType": null,
- "parentType": null,
- "createdAt": null,
- "createdBy": null,
- "name": null,
- "sizeInKb": null,
- "url": null,
- "urlExpiresInMillis": null
}
], - "commentCount": 0,
- "createdBy": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "lastCommentedAt": "2019-08-24T14:15:22Z",
- "lastCommentedUser": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "parentId": 0,
- "parentType": "ROW",
- "readOnly": true,
- "title": "string"
}
], - "proof": {
- "id": 0,
- "originalId": 0,
- "name": "string",
- "proofType": "DOCUMENT",
- "proofRequestUrl": "string",
- "version": 0,
- "lastUpdatedAt": "2019-08-24T14:15:22Z",
- "lastUpdatedBy": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "isCompleted": true,
- "attachments": [
- {
- "id": 0,
- "parentId": 0,
- "attachmentType": "BOX_COM",
- "attachmentSubType": "DOCUMENT",
- "mimeType": "PNG",
- "parentType": "COMMENT",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": {
- "email": null,
- "name": null
}, - "name": "string",
- "sizeInKb": 0,
- "url": "string",
- "urlExpiresInMillis": 0
}
], - "discussions": [
- {
- "accessLevel": "ADMIN",
- "id": 0,
- "comments": [
- null
], - "commentAttachments": [
- null
], - "commentCount": 0,
- "createdBy": {
- "email": null,
- "name": null
}, - "lastCommentedAt": "2019-08-24T14:15:22Z",
- "lastCommentedUser": {
- "email": null,
- "name": null
}, - "parentId": 0,
- "parentType": "ROW",
- "readOnly": true,
- "title": "string"
}
]
}, - "expanded": true,
- "filteredOut": true,
- "format": ",,1,1,,,,,,,,,,,,,",
- "inCriticalPath": true,
- "locked": true,
- "lockedForUser": true,
- "modifiedAt": "2019-08-24T14:15:22Z",
- "modifiedBy": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "permaLink": "string",
- "rowNumber": 1,
- "version": 0
}
], - "showParentRowsForFilters": true,
- "source": {
- "id": 0,
- "type": "string"
}, - "summary": {
- "fields": [
- {
- "id": 0,
- "contactOptions": [
- {
- "email": "string",
- "name": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "displayValue": "string",
- "format": "string",
- "formula": "string",
- "hyperlink": {
- "reportId": 0,
- "sheetId": 0,
- "sightId": 0,
- "url": "string"
}, - "image": {
- "altText": "string",
- "height": 0,
- "id": "string",
- "width": 0
}, - "index": 0,
- "locked": true,
- "lockedForUser": true,
- "modifiedAt": "2019-08-24T14:15:22Z",
- "modifiedBy": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "objectValue": {
- "objectType": "ABSTRACT_DATETIME"
}, - "options": [
- "string"
], - "symbol": "string",
- "title": "string",
- "type": "ABSTRACT_DATETIME",
- "validation": true
}
]
}, - "totalRowCount": 0,
- "userPermissions": {
- "summaryPermissions": "ADMIN"
}, - "userSettings": {
- "criticalPathEnabled": true,
- "displaySummaryTasks": true
}, - "version": 0,
- "workspace": {
- "id": 0,
- "name": "string",
- "accessLevel": "ADMIN",
- "permalink": "string"
}
}
}
Creates a copy of the specified sheet.
sheetId required | number Sheet Id of the sheet being accessed. |
include | string A comma-separated list of elements to copy:
|
exclude | string When specified with a value of sheetHyperlinks, excludes this category from the response |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
Content-Type | string Default: application/json Required for POST and PUT requests. Defines the structure for the request body. |
Destination where to create a copy of the specified sheet.
destinationId | number The Id of the destination container (when copying or moving a sheet or a folder). Required if destinationType is "folder" or "workspace". If destinationType is "home", this value must be null. |
destinationType | string Nullable Type of the destination container. |
newName | string Name of the newly created object (when creating a copy of a dashboard, folder, sheet, or workspace). This attribute is not supported for "move" operations. |
{- "destinationId": 0,
- "destinationType": "folder",
- "newName": "string"
}
{- "version": 0,
- "failedItems": [
- {
- "rowId": 0,
- "error": {
- "refId": "string",
- "errorCode": 0,
- "message": "string"
}, - "index": 0
}
], - "message": "SUCCESS",
- "resultCode": 0,
- "result": {
- "id": 0,
- "accessLevel": "ADMIN",
- "name": "string",
- "permalink": "string"
}
}
Sends the sheet as a PDF attachment via email to the designated recipients.
sheetId required | number Sheet Id of the sheet being accessed. |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
Content-Type | string Default: application/json Required for POST and PUT requests. Defines the structure for the request body. |
format | string One of the following values: EXCEL, PDF, or PDF_GANTT. |
object | |
ccMe | boolean Indicates whether to send a copy of the email to the sender. |
message | string The message of the email. |
Array of objects or objects Array of recipients. | |
subject | string The subject of the email. |
{- "format": "string",
- "formatDetails": {
- "paperSize": "LETTER"
}, - "ccMe": true,
- "message": "string",
- "sendTo": [
- {
- "email": "john.doe@smartsheet.com"
}
], - "subject": "string"
}
{- "message": "SUCCESS",
- "resultCode": 0
}
Moves the specified sheet to a new location. When a sheet that is shared to one or more users and/or groups is moved into or out of a workspace, those sheet-level shares are preserved.
sheetId required | number Sheet Id of the sheet being accessed. |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
Content-Type | string Default: application/json Required for POST and PUT requests. Defines the structure for the request body. |
Destination to move the specified sheet.
destinationId | number The Id of the destination container (when copying or moving a sheet or a folder). Required if destinationType is "folder" or "workspace". If destinationType is "home", this value must be null. |
destinationType | string Nullable Type of the destination container. |
{- "destinationId": 0,
- "destinationType": "folder"
}
{- "version": 0,
- "failedItems": [
- {
- "rowId": 0,
- "error": {
- "refId": "string",
- "errorCode": 0,
- "message": "string"
}, - "index": 0
}
], - "message": "SUCCESS",
- "resultCode": 0,
- "result": {
- "id": 0,
- "accessLevel": "ADMIN",
- "name": "string",
- "permalink": "string"
}
}
Gets the sheet's 'Publish' settings.
sheetId required | number Sheet Id of the sheet being accessed. |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl https://api.smartsheet.com/2.0/sheets/{sheetId}/publish \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789"
{- "icalEnabled": true,
- "icalUrl": null,
- "readOnlyFullAccessibleBy": "ALL",
- "readOnlyFullDefaultView": "CALENDAR",
- "readOnlyFullEnabled": true,
- "readOnlyFullShowToolbar": true,
- "readOnlyFullUrl": "string",
- "readOnlyLiteEnabled": true,
- "readOnlyLiteSslUrl": "string",
- "readOnlyLiteUrl": "string",
- "readWriteAccessibleBy": "ALL",
- "readWriteDefaultView": "CALENDAR",
- "readWriteEnabled": true,
- "readWriteShowToolbar": true,
- "readWriteUrl": "string"
}
Sets the publish status of the sheet and returns the new status, including the URLs of any enabled publishings.
sheetId required | number Sheet Id of the sheet being accessed. |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
Content-Type | string Default: application/json Required for POST and PUT requests. Defines the structure for the request body. |
SheetPublish object.
For Read Only, if you do not specify a value for readOnlyFullAccessibleBy, the value defaults to the organization-level 'Sheet Publishing' setting (if the sheet owner belongs to an organization account) or to ALL (if the sheet owner does not belong to an organization account).
For Read Write, if you do not specify a value for readWriteAccessibleBy, the value defaults to the organization-level 'Sheet Publishing' setting (if the sheet owner belongs to an organization account) or to ALL (if the sheet owner does not belong to an organization account).
icalEnabled | boolean If true, a webcal is available for the calendar in the sheet. |
readOnlyFullAccessibleBy | string Indicates who can access the 'Read-Only Full' view of the published sheet:
Only returned in the response if readOnlyFullEnabled = true. |
readOnlyFullDefaultView | string Indicates which view the user has set for a read-only, default view of the published sheet. Must be one of the listed enum values. |
readOnlyFullEnabled | boolean If true, a rich version of the sheet is published with the ability to download row attachments and discussions. |
readOnlyFullShowToolbar | boolean Deprecated Indicates whether the left nav toolbar is displayed. The default, or true, is to display the toolbar. If false, hides the toolbar. |
readOnlyLiteEnabled | boolean If true, a lightweight version of the sheet is published without row attachments and discussions. |
readWriteAccessibleBy | string Indicates who can access the 'Edit by Anyone' view of the published sheet:
Only returned in the response if readWriteEnabled = true. |
readWriteDefaultView | string Indicates which view the user has set for a read-write, default view of the published sheet. Must be one of the listed enum values. |
readWriteEnabled | boolean If true,a rich version of the sheet is published with the ability to edit cells and manage attachments and discussions. |
readWriteShowToolbar | boolean Deprecated Indicates whether the left nav toolbar is displayed. The default, or true, is to display the toolbar. If false, hides the toolbar. |
{- "icalEnabled": true,
- "readOnlyFullAccessibleBy": "ALL",
- "readOnlyFullDefaultView": "CALENDAR",
- "readOnlyFullEnabled": true,
- "readOnlyFullShowToolbar": true,
- "readOnlyLiteEnabled": true,
- "readWriteAccessibleBy": "ALL",
- "readWriteDefaultView": "CALENDAR",
- "readWriteEnabled": true,
- "readWriteShowToolbar": true
}
{- "message": "SUCCESS",
- "resultCode": 0,
- "result": {
- "icalEnabled": true,
- "icalUrl": null,
- "readOnlyFullAccessibleBy": "ALL",
- "readOnlyFullDefaultView": "CALENDAR",
- "readOnlyFullEnabled": true,
- "readOnlyFullShowToolbar": true,
- "readOnlyFullUrl": "string",
- "readOnlyLiteEnabled": true,
- "readOnlyLiteSslUrl": "string",
- "readOnlyLiteUrl": "string",
- "readWriteAccessibleBy": "ALL",
- "readWriteDefaultView": "CALENDAR",
- "readWriteEnabled": true,
- "readWriteShowToolbar": true,
- "readWriteUrl": "string"
}
}
Gets the sheet version without loading the entire sheet. The following actions increment sheet version:
sheetId required | number Sheet Id of the sheet being accessed. |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl https://api.smartsheet.com/2.0/sheets/{sheetId}/version \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789"
{- "version": 0
}
Gets a summarized list of all sheets owned by the members of the organization account.
This operation is only available to system administrators
You may use the query string parameter numericDates with a value of true to enable strict parsing of dates in numeric format. See Dates and Times for more information.
string or number When specified with a date and time value, response only includes the objects that are modified on or after the date and time specified. If you need to keep track of frequent changes, it may be more useful to use Get Sheet Version. |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl https://api.smartsheet.com/2.0/users/sheets \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789"
{- "pageNumber": 1,
- "pageSize": 50,
- "totalPages": -1,
- "totalCount": -1,
- "data": [
- {
- "id": 0,
- "name": "string",
- "owner": "",
- "ownerId": 0
}
]
}
Creates a sheet from scratch or from the specified template at the top-level of the specified workspace. For subfolders, use Create Sheet in Folder.
workspaceId required | string WorkspaceID of the worksheet being accessed. |
accessApiLevel | number Default: 0 Allows COMMENTER access for inputs and return values. For backwards-compatibility, VIEWER is the default. For example, to see whether a user has COMMENTER access for a sheet, use accessApiLevel=1. |
include | string Additional parameter to create a sheet from template. A comma-separated list of elements to copy from the template. |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
Content-Type | string Default: application/json Required for POST and PUT requests. Defines the structure for the request body. |
Sheet to create.
Array of objects | |
name | string Sheet name. |
{- "fromId": 0,
- "name": "string"
}
{- "message": "SUCCESS",
- "resultCode": 0,
- "result": {
- "accessLevel": "ADMIN",
- "columns": [
- {
- "autoNumberFormat": {
- "fill": "string",
- "prefix": "string",
- "startingNumber": 0,
- "suffix": "string"
}, - "contactOptions": [
- {
- "email": "string",
- "name": "string"
}
], - "description": "string",
- "format": "string",
- "formula": "string",
- "hidden": true,
- "id": 0,
- "index": 0,
- "locked": true,
- "lockedForUser": true,
- "options": [
- "string"
], - "primary": true,
- "symbol": "string",
- "systemColumnType": "AUTO_NUMBER",
- "tags": [
- "CALENDAR_END_DATE"
], - "title": "string",
- "type": "ABSTRACT_DATETIME",
- "validation": true,
- "version": 0,
- "width": 0
}
], - "id": 0,
- "name": "string",
- "permalink": "string"
}
}