Skip to main content

Update a batch configuration

Update an existing BatchConfiguration owned by your client account. Send only the fields you want to change; omitted fields retain their current values.

When steps is provided, the server normalizes missing sequence values to index + 1 and clamps retryDelayBaseSeconds (>= 1) and timeoutSeconds (>= 5). Updating notification automatically syncs the associated Verifik Webhook, and changing executor propagates the new executor to non-terminal child batches. Updating a configuration does not run lookups and does not consume credits.

Endpoint​

PUT https://api.verifik.co/v2/batch-configurations/{id}

Also reachable via the Smart-Agent proxy at https://ai.verifik.co/v2/batch-configurations/{id} using your own per-client Authorization: Bearer <VERIFIK_JWT> header. Shared x402 execution is blocked with 403 Forbidden.

Headers​

NameValue
Content-Typeapplication/json
AuthorizationBearer <VERIFIK_JWT>

The token must be a client JWT. Missing or invalid credentials return 401 Unauthorized.

Parameters​

NameTypeRequiredDescription
idstringYesBatchConfiguration ObjectId to update.

Body​

All body fields are optional. Include only the properties you want to update.

NameTypeRequiredDescription
namestringNoDisplay name for the configuration. Trimmed, maximum 150 characters.
descriptionstringNoOptional summary of the workflow. Maximum 800 characters.
countrystringNoCountry scope. Trimmed and uppercased by the server.
stepsobject[]NoReplaces the ordered step array. Missing sequence defaults to index + 1; retryDelayBaseSeconds is clamped to >= 1 and timeoutSeconds is clamped to >= 5.
inputFormatstringNoDefault input format: csv, jsonl, or xlsx.
outputFormatstringNoDefault output format: csv, jsonl, or xlsx.
mergeStrategystringNoStep execution strategy: sequential, parallel-independent, or parallel-with-fallback.
notificationobjectNoCompletion notification settings (webhookUrl and emailOnCompletion). Automatically syncs an active Verifik Webhook when webhookUrl is set.
scheduleExpressionstringNoSchedule expression for automated runs.
preferredReportTemplatestringNoSmartReportTemplate ObjectId linked to this configuration.
visitaFlowobjectNoVisual node graph defining step chaining ({{results.N.field}} expressions are excluded from manual inputs in the derived input schema).
isActivebooleanNoWhether the configuration is active.
executorstringNoExecution target: queue, featureRunner, or browser (featureRunner is persisted as browser). Syncs non-terminal child batches when changed.

Request​

const fetch = require("node-fetch");

async function run() {
const id = "67d1b4a0e4f5a60718293b12";
const res = await fetch(`https://api.verifik.co/v2/batch-configurations/${id}`, {
method: "PUT",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_JWT}`,
},
body: JSON.stringify({
name: "Colombia KYC Workflow (Updated)",
mergeStrategy: "parallel-independent",
notification: {
webhookUrl: "https://example.com/webhooks/smart-reports",
emailOnCompletion: ["compliance@example.com"]
},
isActive: true
}),
});
console.log(await res.json());
}

run();

Response​

{
"data": {
"_id": "67d1b4a0e4f5a60718293b12",
"name": "Colombia KYC Workflow (Updated)",
"description": "Core Colombian identity and registry verification for citizens.",
"country": "CO",
"executor": "browser",
"inputFormat": "csv",
"outputFormat": "csv",
"mergeStrategy": "parallel-independent",
"preferredReportTemplate": "67d1b4a1e4f5a60718293b15",
"notification": {
"webhookUrl": "https://example.com/webhooks/smart-reports",
"emailOnCompletion": ["compliance@example.com"]
},
"isActive": true,
"steps": [
{
"_id": "67d1b4a0e4f5a60718293b13",
"appFeature": {
"_id": "65f0a1b2c3d4e5f607182901",
"name": "Colombian Cédula Validation",
"code": "co-cedula",
"url": "/v2/co/cedula",
"method": "GET",
"price": 0.05,
"smartCheckPrice": 0.05,
"country": "Colombia"
},
"sequence": 1,
"enabled": true,
"parameterDefaults": {},
"queryMode": "byDocument",
"inputFieldMapping": {},
"outputFieldsToKeep": [],
"maxRetries": 3,
"retryDelayBaseSeconds": 4,
"timeoutSeconds": 30
}
],
"createdAt": "2026-10-15T14:20:00.000Z",
"updatedAt": "2026-10-15T15:45:00.000Z"
}
}

Notes​

  • Sending steps replaces the entire steps array on the configuration; it does not patch individual steps in place.
  • Missing sequence values inside steps are normalized to index + 1, retryDelayBaseSeconds is clamped to >= 1, and timeoutSeconds is clamped to >= 5.
  • Changing executor synchronizes any non-terminal child batches belonging to this configuration.
  • Missing or cross-client IDs return 404 (not_found), while Mongoose schema validation errors return 422 (UnprocessableEntity).