Documentation Index

Fetch the complete documentation index at: https://help.docfusioncloud.com/llms.txt

Use this file to discover all available pages before exploring further.

[Put] Set Batch to Completed State

Prev Next

PUT  /api/DocBatch/MarkBatchUploadComplete

Required User-Role: BatchCreator

Sets the batch to the completed state. Once marked complete the batch no longer accepts batch records. The batch is then queued for processing and its status is updated to allow batch requests.


Request

PUT /api/DocBatch/MarkBatchUploadComplete?tenantGuid={tenantGuid}&batchGuid={batchGuid}
content-type: application/json
authorization: Bearer {token}

See Authentication for more about bearer tokens.

   

Query Parameters

tenantGuid (string($uuid)) Required 
The Guid of the batch tenant associated to the batch.

batchGuid (string($uuid)) Required
Unique Guid of the batch to set the completed state on.

   

Response

200  Returns the success state and the batch or an error description. 

{
  "isSuccess": true,
  "error": "string",
  "result": {
    "batchGuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "createdDate": "2023-08-28T08:29:58.864Z",
    "hasCreationCompleted": true,
    "totalRecords": 0,
    "completedRecords": 0,
    "errorRecords": 0,
    "validatedRecords": 0,
    "failedValidatedRecords": 0,
    "updatedDate": "2023-08-28T08:29:58.864Z",
    "completedDate": "2023-08-28T08:29:58.864Z",
    "deletedDate": "2023-08-28T08:29:58.864Z",
    "statusId": "Creating",
    "hasData": true,
    "hasLogData": true,
    "hasDocumentData": true,
    "batchType": {
      "batchTypeGuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "name": "string",
      "configuration": {
        "processRecordsWithoutApproval": true,
        "performMerge": true,
        "batchCompletionIgnoresRecordsInError": true,
        "purgeTimeSpan": "string",
        "dataType": "Xml",
        "dataSchemaBase64": "string",
        "referenceDataPath": "string",
        "templateGuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "templateVersion": "string",
        "chainGuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "chainVersion": "string",
        "workflowProcessGuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "workflowProcessVersion": "string",
        "timeout": "string",
        "parameters": {
          "additionalProp1": "string",
          "additionalProp2": "string",
          "additionalProp3": "string"
        }
      }
    },
    "batchReference": "string"
  }
}

Error Codes

HTTP

401 Unauthorized

403 Forbidden