[GET] Get Batch Paginated
Use this request to get information about all the batches in your Organization (or a filtered subset), in a paginated format.
This request is optimized for high Batch counts and thus is ideal to create listing screens or gather large amounts of data.
Batch Paginated
GET
/api/v1.0/external/sdbatch/paginated?workspaceId=1&startDate=2023-08-07T08:55:29.7831583Z&endDate=2023-08-09T08:55:29.7831583Z&pageNumber=1&pageSize=10
Query Parameters
startDate
datetime
(optional)
Include batches created after this date.
endDate
datetime
(optional)
Include batches created before this date.
workspaceId
integer
(optional)
The ID of the workspace to filter for. To filter with more than one workspaceId
value, simply add another entry to the query string, i.e ?workspaceId=1&workspaceId=2
to filter on workspace ID 1 and 2.
sort
string
(optional)
name of property to sort result values. Sorts by createdOn
by default.
pageNumber
integer
The page number to retrieve. Starts at 1 up to the number of total pages available.
pageSize
integer
The number of items to retrieve per page. Defaults to 10 if not specified.
Batches will be returned within the "items" array.
Example Request
curl --location 'https://cloud.smartdocumentor.net/api/v1.0/external/sdbatch/paginated?workspaceId=1&startDate=2023-08-07T08%3A55%3A29.7831583Z&endDate=2023-08-09T08%3A55%3A29.7831583Z&pageNumber=1&pageSize=10' \
--header 'Authorization: Bearer null' \
--header 'Content-Type: application/json'
Responses
{
"items": [
{
"batchId": 1,
"workspaceId": 1,
"displayName": "YourBatchName",
"description": "AnOptionalDescriptionForYourBatch",
"createdOn": "2023-08-08T08:55:29.7831583Z",
"totalTasks": 0,
"totalTasksInHistory": 0
},
{
"batchId": 1,
"workspaceId": 1,
"displayName": "YourBatchName2",
"description": "AnOptionalDescriptionForYourBatch2",
"createdOn": "2023-08-08T08:56:29.7831583Z",
"totalTasks": 0,
"totalTasksInHistory": 0
}
],
"pageNumber": 1,
"totalPages": 1,
"totalCount": 2,
"hasPreviousPage": false,
"hasNextPage": false
}
Response Body GetBatchPaginatedResponse
items
the list of returned items for this request. Returns an empty list if no items were found.
pageNumber
integer
The page number retrieved.
totalPages
integer
The total number of pages that the server can potentially retrieve, with the given filters, at the time the request was made.
totalCount
integer
The total count of items available for retrieval, with the given filters, at the time the request was made.
hasPreviousPage
boolean
true
if the currently retrieved page has a previous page available, false
otherwise.
hasNextPage
boolean
true
if a next page exists after the currently retrieved page, false
otherwise.
Last updated