SmartDocumentor
  • Overview
    • SmartDocumentor
  • GETTING STARTED
    • About SmartDocumentor
    • How SmartDocumentor Works
    • Main concepts
      • Workspaces
      • Organization
    • Quickstart 101
    • Licenses
      • How to Buy?
      • Support
    • Privacy
    • Security
  • Technical
    • Initial Setup
    • Mappings
    • API Reference
      • [POST] Client Credentials Access Token
      • [GET] Task Status
      • [GET] Task Status List
      • [GET] Task Status List Paginated
      • [GET] Get Workspaces
      • [PATCH] Reprocess Task
      • [POST] Create Task
      • [POST] Create Batch
      • [GET] Get Batch
      • [GET] Get Batch Paginated
      • Transcripts
        • Speakers
          • Workspaces
            • [GET] Workspace Speakers
            • [PUT] Workspace Speakers
          • Tasks
            • [GET] Task Speakers
            • [POST] Task Speaker
            • [PUT] Task Speaker
            • [DELETE] Task Speaker
      • Invite Users
        • [GET] List Available Roles
        • Tenants
          • [GET] List All Tenant Users
          • [POST] Invite Users
        • Workspaces
          • [GET] List All Workspace Users
          • [POST] Invite Users
    • Folder Worker
    • Export
      • Webhooks
        • Webhook (Text Documents)
        • Webhook (Transcripts)
        • Webhook Url To File (Transcripts)
        • Webhook Url to File (Anonymization)
    • Changelog
  • FAQs
    • FAQs
Powered by GitBook
On this page
  • Reprocess Task
  • Query Parameters
  • Example Request
  • Responses
  1. Technical
  2. API Reference

[PATCH] Reprocess Task

Previous[GET] Get WorkspacesNext[POST] Create Task

Last updated 3 months ago

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 for a long time.

You can use the , or 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 .

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 . Additionally, Tasks stuck in the ExportCompleted or Processed statuses are automatically moved to the screen.

All tasks updated by this process are visually identified by a warning icon next to the task status in the or 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

Name
Type
Description

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

curl --location --request PATCH 'https://cloud.smartdocumentor.net/api/v1.0/external/sdtask/restartprocessing?taskId=104' --header 'Authorization: Bearer {your access token here}'
var client = new HttpClient();

var accessToken = "your access token here";
var request = new HttpRequestMessage(HttpMethod.Patch, "https://cloud.smartdocumentor.net/api/v1.0/external/sdtask/restartprocessing?taskId=104");

request.Headers.Add("Authorization", $"Bearer {accessToken}");

var response = await client.SendAsync(request);

response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
import requests

url = "https://cloud.smartdocumentor.net/api/v1.0/external/sdtask/restartprocessing?taskId=104"
access_token = "your access token here"

payload = {}
headers = {
'Authorization': f'Bearer {access_token}'
}

response = requests.request("PATCH", url, headers=headers, data=payload)

print(response.text)
const myHeaders = new Headers();
const accessToken = "your access token here";
myHeaders.append("Authorization", `Bearer ${accessToken}`);

const requestOptions = {
method: 'PATCH',
headers: myHeaders,
redirect: 'follow'
};

fetch("https://cloud.smartdocumentor.net/api/v1.0/external/sdtask/restartprocessing?taskId=104", requestOptions)
    .then(response => response.text())
    .then(result => console.log(result))
    .catch(error => console.log('error', error));

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.

GET Task Status
GET Task Status List
GET Task Status List Paginated
GET Task Status page
Task History
Tasks Inbox
Task History
TaskStatus
TaskStatus