Skip to main content

Update a Smart Batch

Update fields on an existing SmartBatch owned by the authenticated client. You can update name, status, executor, or replace rows. When rows is supplied, the server recalculates totalRows, completedRows, failedRows, and partialRows and syncs external row snapshots.

Use the dedicated Pause a Smart Batch endpoint to transition a batch to "paused". Changing executor only takes effect when the batch is currently in "draft", "pending", or "cancelled" status.

Endpoint​

PUT https://api.verifik.co/v2/smart-batches/{id}

This endpoint is also reachable through the Smart-Agent proxy at https://ai.verifik.co/v2/smart-batches/{id} using your own per-client Authorization: Bearer <VERIFIK_JWT>. Shared x402 execution is blocked with 403 Forbidden.

Headers​

NameValueDescription
Content-Typeapplication/jsonRequest payload format.
AuthorizationBearer <VERIFIK_JWT>Client-scoped JWT (authUser.clientId).

Parameters​

NameTypeRequiredDescription
idstringYesSmartBatch ObjectId to update.

Body​

NameTypeRequiredDescription
namestringNoUpdated batch display name. Maximum 150 characters.
statusstringNoAllowed values: "draft", "pending", "processing", "completed", "failed", or "cancelled". Use POST /v2/smart-batches/{id}/pause for "paused".
executorstringNoAllowed values: "queue", "featureRunner", or "browser". Only takes effect when the current batch status is "draft", "pending", or "cancelled".
rowsobject[]NoReplacement row list. Wrapped format requires rowIndex and inputData and optionally accepts status, results, errors, and processedAt; flat rows are normalized automatically.

Unknown body keys are rejected by Joi validation with 409 MissingParameter.

Request​

import axios from "axios";

const run = async () => {
const batchId = "6801a2b3c4d5e6f7a8b9c0d3";

const { data } = await axios.put(
`https://api.verifik.co/v2/smart-batches/${batchId}`,
{
name: "Colombia Onboarding — Updated",
executor: "queue",
rows: [
{
rowIndex: 0,
inputData: {
documentType: "CC",
documentNumber: "1032386359",
},
status: "pending",
},
],
},
{
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_JWT}`,
},
}
);

console.log(data);
};

run();

Response​

{
"data": {
"_id": "6801a2b3c4d5e6f7a8b9c0d3",
"batchConfiguration": "6801a2b3c4d5e6f7a8b9c0d4",
"client": "507f1f77bcf86cd799439013",
"name": "Colombia Onboarding — Updated",
"status": "draft",
"executor": "queue",
"source": "smart_batch",
"headlessRun": false,
"creditsSpent": 0,
"rows": [
{
"rowIndex": 0,
"inputData": {
"documentType": "CC",
"documentNumber": "1032386359"
},
"status": "pending",
"results": {},
"errors": []
}
],
"totalRows": 1,
"completedRows": 0,
"failedRows": 0,
"partialRows": 0,
"createdAt": "2026-11-24T19:58:00.000Z",
"updatedAt": "2026-11-24T20:06:00.000Z"
}
}

Notes​

  • "paused" is not accepted in PUT /v2/smart-batches/{id}; call Pause a Smart Batch instead.
  • Updating executor is ignored unless the batch is currently in "draft", "pending", or "cancelled" status.
  • To add new rows onto an existing batch without replacing existing ones, use Append rows to a Smart Batch.