Gets a list of all groups in an organization account. To fetch the members of an individual group, use the Get Group operation.
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/groups \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789"
{- "pageNumber": 1,
- "pageSize": 50,
- "totalPages": 25,
- "totalCount": 136,
- "data": [
- {
- "id": 4583173393803140,
- "name": "Group 1",
- "description": "My group",
- "owner": "john.doe@smartsheet.com",
- "ownerId": 2331373580117892,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z"
}
]
}
Creates a new group.
This operation is only available to group administrators and system administrators.
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
Group object, limited to the following attributes:
name | string name (required) Must be unique within the organization account. |
description | string description (optional) |
Array of objects |
{- "name": "API-created group",
- "description": "Group created via API",
- "members": [
- {
- "email": "john.doe@smartsheet.com"
}
]
}
{- "message": "SUCCESS",
- "resultCode": 0,
- "result": {
- "id": 4583173393803140,
- "name": "Group 1",
- "description": "My group",
- "owner": "john.doe@smartsheet.com",
- "ownerId": 2331373580117892,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z"
}
}
Gets information about an array of Group Members for the group specified in the URL.
groupId required | number Group Id |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl https://api.smartsheet.com/2.0/groups/{groupId} \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789"
{- "id": 4583173393803140,
- "name": "Group 1",
- "description": "My group",
- "owner": "john.doe@smartsheet.com",
- "ownerId": 2331373580117892,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "members": [
- {
- "id": 2331373580117892,
- "email": "john.doe@smartsheet.com",
- "firstName": "John",
- "lastName": "Doe",
- "name": "John Doe"
}
]
}
Updates the Group specified in the URL.
This operation is only available to group administrators and system administrators.
groupId required | number Group Id |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
Group object, limited to the following attributes:
name | string name (Optional) Must be unique within the organization account. |
description | string Description (optional). |
ownerId | number ownerId (optional) Id of an admin user to whom the group ownership is transferred. |
{- "name": "Renamed group",
- "description": "Some new description",
- "ownerId": 94094820842
}
{- "message": "SUCCESS",
- "resultCode": 0,
- "result": {
- "id": 4583173393803140,
- "name": "Group 1",
- "description": "My group",
- "owner": "john.doe@smartsheet.com",
- "ownerId": 2331373580117892,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z"
}
}
Deletes the group specified in the URL.
This operation is only available to group administrators and system administrators.
groupId required | number Group Id |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl https://api.smartsheet.com/2.0/groups/{groupId} \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789" \ -X DELETE
{- "message": "SUCCESS",
- "resultCode": 0
}