[POST] Create Batch

Use this request to create a new Batch in a given Workspace.

You can use batches to process and organize Tasks together.

Create Batch

POST/api/v1.0/external/sdbatch

Batches and Workspaces

All batches are tied to a Workspace. You can have multiple batches per workspace, and you can mix tasks with or without a batch in the same workspace.

Body application/json CreateBatchRequest

Name
Type
Description

displayName

string

A required display name for your batch.

description

string (optional)

An optional description for your batch.

workspaceId

integer (optional)

The ID of the workspace to add this batch to. Note, each workspace processes a specific Task Type - since a batch is tied to its workspace, all tasks in the batch will have the same Task Type as the workspace. If not specified, the default workspace in your tenant is used.

Example Request

curl --location 'https://cloud.smartdocumentor.net/api/v1.0/external/sdbatch' \
--header 'Authorization: Bearer null' \
--header 'Content-Type: application/json' \
--data '{
    "displayName": "YourBatchName",
    "description": "AnOptionalDescriptionForYourBatch"
}'

You can use the Create Task request to create tasks and add them to a previously created Batch.

Responses

{
  "batchId": 1,
  "workspaceId": 1,
  "displayName": "YourBatchName",
  "description": "AnOptionalDescriptionForYourBatch",
  "createdOn": "2023-08-08T08:55:29.7831583Z",
  "totalTasks": 0,
  "totalTasksInHistory": 0
}

Response Body GetBatchResponse

Name
Type
Description

batchId

integer

The unique identifier assigned to your batch.

workspaceId

integer

The workspace ID you assigned to this batch, or the ID of the default Workspace in your Organization, if none was provided.

displayName

string

The display name you assigned to your batch.

description

string (optional)

The description you provided to your batch.

createdOn

datetime

UTC timestamp of when the batch was created in our system.

totalTasks

integer

The total number of tasks assigned to this batch. Will always equal zero when the task is created.

totalTasksInHistory

integer

The total number of tasks in history assigned to this batch. Will always equal zero when the task is created.

Last updated