Gets a list of workspaces that the user has access to. The list contains an abbreviated Workspace object for each workspace.
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). |
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/workspaces \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789"
{- "pageNumber": 1,
- "pageSize": 50,
- "totalPages": 25,
- "totalCount": 136,
- "data": [
- {
- "id": 0,
- "name": "string",
- "accessLevel": "ADMIN",
- "permalink": "string"
}
]
}
Creates a new workspace.
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 elements to include:
|
skipRemap | string A comma-separated list of references to NOT re-map for the newly created folder. |
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. |
Workspace to create.
id | number Workspace Id. |
name | string Workspace name. |
accessLevel | string Enum: "ADMIN" "COMMENTER" "EDITOR" "EDITOR_SHARE" "OWNER" "VIEWER" |
permalink | string URL that represents a direct link to the workspace in Smartsheet. |
{- "id": 0,
- "name": "string",
- "accessLevel": "ADMIN",
- "permalink": "string"
}
{- "message": "SUCCESS",
- "resultCode": 0,
- "data": {
- "id": 0,
- "name": "string",
- "accessLevel": "ADMIN",
- "permalink": "string"
}
}
Gets a Workspace object.
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 A comma-separated list of optional elements to include in the response:
|
loadAll | boolean Default: false If set to |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl https://api.smartsheet.com/2.0/workspaces/{workspaceid} \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789"
{- "id": 0,
- "name": "string",
- "accessLevel": "ADMIN",
- "permalink": "string"
}
Deletes a workspace.
workspaceId required | string WorkspaceID of the worksheet being accessed. |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl https://api.smartsheet.com/2.0/workspaces/7960873114331012 \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789" \ -X DELETE
{- "message": "SUCCESS",
- "resultCode": 0
}
Updates a workspace.
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. |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
name | string Workspace name. |
{- "name": "string"
}
{- "version": 0,
- "failedItems": [
- {
- "rowId": 0,
- "error": {
- "refId": "string",
- "errorCode": 0,
- "message": "string"
}, - "index": 0
}
], - "message": "SUCCESS",
- "resultCode": 0,
- "result": {
- "id": 0,
- "name": "string",
- "accessLevel": "ADMIN",
- "permalink": "string"
}
}
Copies a workspace.
workspaceId required | string WorkspaceID of the worksheet being accessed. |
include | string A comma-separated list of elements to include:
|
skipRemap | string A comma-separated list of references to NOT re-map for the newly created folder. |
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. |
New workspace name.
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"
}
{- "destinationId": 0,
- "destinationType": "folder",
- "newName": "string"
}
Lists a workspace's folders.
workspaceId required | string WorkspaceID of the worksheet being accessed. |
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). |
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/workspaces/{workspaceId}/folders \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789" \ -H "Content-Type: application/json"
{- "pageNumber": 1,
- "pageSize": 50,
- "totalPages": 25,
- "totalCount": 136,
- "data": [
- {
- "id": 987654321,
- "name": "Upcoming Campaigns",
}
]
}
Creates a new folder.
workspaceId required | string WorkspaceID of the worksheet 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. |
Folder to create.
name | string Folder name. |
{- "name": "string"
}
{- "message": "SUCCESS",
- "resultCode": 0,
- "result": {
- "name": "string"
}
}