[PATCH] Reprocess Task
Use this request to restart processing of a specific Task. Note that this is a DESTRUCTIVE process - all previous edits to the task will be lost.
Re-processing is useful when the task is stuck in a specific TaskStatus for a long time.
You can use the GET Task Status, GET Task Status List or GET Task Status List Paginated requests to find tasks that are stuck and reprocess those you see fit.
A successful reprocess request increases the restartCount of the task by one, and updates preProcessingStartedOn. More information about these fields can be found in the GET Task Status page.
Reprocess Task
PATCH/api/v1.0/external/sdtask/restartprocessing?taskId=104
Automatic Task reprocessing
SmartDocumentor will not automatically reprocess tasks without your intervention, to minimize credit costs in your Organization.
However, we detect Tasks stuck for a long period of time, and revert them to the nearest valid TaskStatus. Additionally, Tasks stuck in the ExportCompleted or Processed statuses are automatically moved to the Task History screen.
All tasks updated by this process are visually identified by a warning icon next to the task status in the Tasks Inbox or Task History screens.
Task Assignment
Reprocessing a task will reset the status of all assigned users for the task, restarting the entire assignment workflow from the start.
Payload of reprocessed tasks
Note that tasks are reprocessed with the information that existed at the time of the first processing request. It is not possible to update this information after Task creation.
Query Parameters
taskId
integer (optional)
The ID that identifies the task to reprocess. This ID is always unique and never changes after it has been created.
externalId
string (optional)
An optional External ID, valid for your organization and added to the Task at creation that uniquely identifies it in your Organization.
At least one of taskId or externalId must be specified.
Example Request
Responses
Response body has no content.
Note Returned when the reprocessing request is accepted successfully.
Response body has no content.
Note
Returned when no Task was found with the specified taskId or externalId.
Response body has no content.
Note
Returned when a taskId or externalId are not specified.
Last updated