Retrieves a list of data export requests.
limit | integer [ 0 .. 1000 ] Limits the number of collection items to be returned. |
offset | integer >= 0 Specifies the starting point within the collection of items to be returned. |
sort | Array of strings Sorts and orders the collection of items. To sort in descending
order, prefix with |
filter | string Filters the collection items. This field requires
a special format. Use For more information, see Using filter with collections. |
q | string Use this field to perform a partial search of text fields. |
criteria | string Criteria parameter for requesting a collection. |
List of data export requests retrieved.
name required | string Name of the export. | ||||||
format required | string Output format of the export. | ||||||
resource required | string Type of resource to export. | ||||||
id | string <= 50 characters ID of the export. | ||||||
object Export request arguments used to filter and sort the result set. For more information, see Arguments. | |||||||
| |||||||
emailNotification | Array of strings <email> List of email addresses to notify when an export is completed. | ||||||
fields | Array of strings List of fields to include in the export. For more information, see Arguments. | ||||||
object Recurring export schedule. | |||||||
| |||||||
userId | string ID of the user who requested the data export. | ||||||
recordCount | integer Total number of records in the export, excluding the header row. | ||||||
scheduledTime | string <date-time> Date and time when the data export is scheduled to generate a file. | ||||||
createdTime | string <date-time> (CreatedTime) Date and time which is set automatically when the resource is created. | ||||||
updatedTime | string <date-time> (UpdatedTime) Date and time which updates automatically when the resource is updated. | ||||||
status | string Status of export request. | ||||||
Array of objects Related links. | |||||||
object Date range of the data export. If this value is not set, all data is included. For more information, see Date ranges. | |||||||
|
Unauthorized access. Invalid credentials used.
Access forbidden.
Resource not found.
// all parameters are optional const firstCollection = await api.exports.getAll(); // alternatively you can specify one or more of them const params = {limit: 20, offset: 100, sort: '-createdTime'}; const secondCollection = await api.exports.getAll(params); // access the collection items, each item is a Member secondCollection.items.forEach(file => console.log(exports.fields.status));
[- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "name": "string",
- "resource": "transactions",
- "format": "csv",
- "arguments": {
- "filter": "string",
- "sort": "string",
- "q": "string"
}, - "emailNotification": [
- "user@example.com"
], - "fields": [
- "string"
], - "recurring": {
- "instruction": "string",
- "start": "2019-08-24T14:15:22Z"
}, - "userId": "string",
- "recordCount": 0,
- "scheduledTime": "2019-08-24T14:15:22Z",
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "status": "pending",
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
]
}
]