Gets a list of all dashboards that the user has access to.
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. |
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, the last page of results is returned. |
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/sights \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789"
{- "pageNumber": 1,
- "pageSize": 50,
- "totalPages": 25,
- "totalCount": 136,
- "data": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "id": 0,
- "accessLevel": "ADMIN",
- "permalink": "string",
- "name": "string"
}
]
}
Gets the specified dashboard.
sightId required | string SightID of the sight 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:
|
level | integer Default: 0 Specifies whether new functionality, such as multi-contact data is returned in a backwards-compatible, text format (level=0, default), multi-contact data (level=2), multi-picklist data (level=3), or Metric widget with sheet summary (level=4). |
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. |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl https://api.smartsheet.com/2.0/sights/{sightId}?level=4 \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789"
{- "backgroundColor": "string",
- "defaultWidgetBackgroundColor": "string",
- "columnCount": 0,
- "favorite": true,
- "source": {
- "id": 0,
- "type": "string"
}, - "widgets": [
- {
- "id": 0,
- "type": "CHART",
- "contents": {
- "type": "CHART",
- "reportId": 0,
- "sheetId": 0,
- "axes": [
- {
- "location": "BOTTOM",
- "title": "string",
- "titleInfo": {
- "type": "ABSTRACT_DATE_TIME"
}, - "axisTitleFont": "Arial",
- "axisLabelFormat": ",,,,,,,,36,,,,,,,,",
- "axisLabelFont": "Arial",
- "includeZero": true
}
], - "hyperlink": {
- "interactionType": "DISTI_COPY",
- "folderId": 0,
- "reportId": 0,
- "sheetId": 0,
- "sightId": 0,
- "url": "string",
- "workspaceId": 0
}, - "includedColumnIds": [
- 0
], - "legend": {
- "location": "BOTTOM",
- "legendFormat": ",,1,1,,,,,,,,,,,,,",
- "legendFont": "Arial"
}, - "selectionRanges": [
- {
- "sourceColumnId1": 0,
- "sourceColumnId2": 0,
- "sourceRowId1": 0,
- "sourceRowId2": 0
}
], - "series": [
- {
- "title": "string",
- "titleInfo": {
- "type": "ABSTRACT_DATE_TIME"
}, - "seriesTitleFormat": "string",
- "seriesType": "AREA",
- "dataLabels": {
- "labelType": "NONE"
}, - "tooltips": {
- "labelType": "NONE"
}, - "lineType": "CURVED",
- "holeSize": 0,
- "isFilled": true,
- "isHalf": true,
- "isStacked": true,
- "xFormat": ",,1,1,,,,,,,,,,,,,",
- "yFormat": ",,1,1,,,,,,,,,,,,,",
- "color": "string",
- "axisLocationX": "BOTTOM",
- "axisLocationY": "BOTTOM",
- "yColumnInfo": {
- "type": "ABSTRACT_DATE_TIME"
}, - "xColumnInfo": {
- "type": "ABSTRACT_DATE_TIME"
}, - "seriesSelectionOrder": "COLUMNS",
- "seriesData": [
- {
- "x": null,
- "y": null,
- "xFormat": null,
- "yFormat": null,
- "color": null
}
], - "selectionRanges": [
- {
- "sourceColumnId1": null,
- "sourceColumnId2": null,
- "sourceRowId1": null,
- "sourceRowId2": null
}
]
}
], - "verticalGridLines": {
- "lineStyle": "SOLID"
}, - "horizontalGridLines": {
- "lineStyle": "SOLID"
}
}, - "height": 0,
- "showTitle": true,
- "showTitleIcon": true,
- "title": "string",
- "titleFormat": ",,1,,,,,,,3,,,,,,1,",
- "titleFont": "Arial",
- "version": 0,
- "viewMode": 1,
- "width": 0,
- "xPosition": 0,
- "yPosition": 0
}
], - "workspace": {
- "id": 0,
- "name": "string",
- "accessLevel": "ADMIN",
- "permalink": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "id": 0,
- "accessLevel": "ADMIN",
- "permalink": "string",
- "name": "string"
}
Updates (renames) the specified dashboard.
sightId required | string SightID of the sight being accessed. |
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. |
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. |
name | string Dashboard name. |
{- "name": "string"
}
{- "failedItems": [
- {
- "rowId": 0,
- "error": {
- "refId": "string",
- "errorCode": 0,
- "message": "string"
}, - "index": 0
}
], - "message": "SUCCESS",
- "resultCode": 0,
- "result": {
- "backgroundColor": "string",
- "defaultWidgetBackgroundColor": "string",
- "columnCount": 0,
- "favorite": true,
- "source": {
- "id": 0,
- "type": "string"
}, - "widgets": [
- {
- "id": 0,
- "type": "CHART",
- "contents": {
- "type": "CHART",
- "reportId": 0,
- "sheetId": 0,
- "axes": [
- {
- "location": "BOTTOM",
- "title": "string",
- "titleInfo": {
- "type": "ABSTRACT_DATE_TIME"
}, - "axisTitleFont": "Arial",
- "axisLabelFormat": ",,,,,,,,36,,,,,,,,",
- "axisLabelFont": "Arial",
- "includeZero": true
}
], - "hyperlink": {
- "interactionType": "DISTI_COPY",
- "folderId": 0,
- "reportId": 0,
- "sheetId": 0,
- "sightId": 0,
- "url": "string",
- "workspaceId": 0
}, - "includedColumnIds": [
- 0
], - "legend": {
- "location": "BOTTOM",
- "legendFormat": ",,1,1,,,,,,,,,,,,,",
- "legendFont": "Arial"
}, - "selectionRanges": [
- {
- "sourceColumnId1": 0,
- "sourceColumnId2": 0,
- "sourceRowId1": 0,
- "sourceRowId2": 0
}
], - "series": [
- {
- "title": "string",
- "titleInfo": {
- "type": "ABSTRACT_DATE_TIME"
}, - "seriesTitleFormat": "string",
- "seriesType": "AREA",
- "dataLabels": {
- "labelType": "NONE"
}, - "tooltips": {
- "labelType": "NONE"
}, - "lineType": "CURVED",
- "holeSize": 0,
- "isFilled": true,
- "isHalf": true,
- "isStacked": true,
- "xFormat": ",,1,1,,,,,,,,,,,,,",
- "yFormat": ",,1,1,,,,,,,,,,,,,",
- "color": "string",
- "axisLocationX": "BOTTOM",
- "axisLocationY": "BOTTOM",
- "yColumnInfo": {
- "type": "ABSTRACT_DATE_TIME"
}, - "xColumnInfo": {
- "type": "ABSTRACT_DATE_TIME"
}, - "seriesSelectionOrder": "COLUMNS",
- "seriesData": [
- {
- "x": null,
- "y": null,
- "xFormat": null,
- "yFormat": null,
- "color": null
}
], - "selectionRanges": [
- {
- "sourceColumnId1": null,
- "sourceColumnId2": null,
- "sourceRowId1": null,
- "sourceRowId2": null
}
]
}
], - "verticalGridLines": {
- "lineStyle": "SOLID"
}, - "horizontalGridLines": {
- "lineStyle": "SOLID"
}
}, - "height": 0,
- "showTitle": true,
- "showTitleIcon": true,
- "title": "string",
- "titleFormat": ",,1,,,,,,,3,,,,,,1,",
- "titleFont": "Arial",
- "version": 0,
- "viewMode": 1,
- "width": 0,
- "xPosition": 0,
- "yPosition": 0
}
], - "workspace": {
- "id": 0,
- "name": "string",
- "accessLevel": "ADMIN",
- "permalink": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "id": 0,
- "accessLevel": "ADMIN",
- "permalink": "string",
- "name": "string"
}
}
Deletes the dashboard specified in the URL.
sightId required | string SightID of the sight being accessed. |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl https://api.smartsheet.com/2.0/sights/{sightId} \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789"
{- "message": "SUCCESS",
- "resultCode": 0
}
Creates a copy of the specified dashboard.
sightId required | string SightID of the sight 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. |
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"
}
{- "failedItems": [
- {
- "rowId": 0,
- "error": {
- "refId": "string",
- "errorCode": 0,
- "message": "string"
}, - "index": 0
}
], - "message": "SUCCESS",
- "resultCode": 0,
- "result": {
- "id": 0,
- "accessLevel": "ADMIN",
- "permalink": "string",
- "name": "string"
}
}
Moves the specified dashboard to a new location.
sightId required | string SightID of the sight 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. |
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"
}
{- "failedItems": [
- {
- "rowId": 0,
- "error": {
- "refId": "string",
- "errorCode": 0,
- "message": "string"
}, - "index": 0
}
], - "message": "SUCCESS",
- "resultCode": 0,
- "result": {
- "id": 0,
- "accessLevel": "ADMIN",
- "permalink": "string",
- "name": "string"
}
}
Gets the dashboard 'publish' settings.
sightId required | string SightID of the sight being accessed. |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl https://api.smartsheet.com/2.0/sights/{sightId}/publish \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789"
{- "readOnlyFullAccessibleBy": "ALL",
- "readOnlyFullEnabled": true,
- "readOnlyFullUrl": "string"
}
Publishes or unpublishes a dashboard.
sightId required | string SightID of the sight 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. |
readOnlyFullAccessibleBy | string Indicates who can access the 'Read-Only Full' view of the published dashboard. Only returned in the response if readOnlyFullEnabled = true.
If readOnlyFullEnabled is set to true in the request, but readOnlyFullAccessibleBy is not specified, the value of readOnlyFullAccessibleBy defaults to the organization-level 'Dashboard Publishing' setting (if the dashboard owner belongs to an organization account) or to ALL (if the dashboard owner does not belong to an organization account). |
readOnlyFullEnabled required | boolean If true, a rich version of the dashboard is published with the ability to use shortcuts and widget interactions. |
{- "readOnlyFullAccessibleBy": "ALL",
- "readOnlyFullEnabled": true
}
{- "failedItems": [
- {
- "rowId": 0,
- "error": {
- "refId": "string",
- "errorCode": 0,
- "message": "string"
}, - "index": 0
}
], - "message": "SUCCESS",
- "resultCode": 0,
- "result": {
- "readOnlyFullAccessibleBy": "ALL",
- "readOnlyFullEnabled": true,
- "readOnlyFullUrl": "string"
}
}