Skip to main content

Update a report template

Update a custom Smart Report template owned by your client account. Send any subset of updatable metadata, layout sections, reportTheme, sampleData, or PDF rendering options; fields omitted from the payload keep their existing values.

In headless and AI pipelines, use this endpoint to iterate on layouts generated by Generate template layout, refresh brand assets (logo, primaryColor, customFonts), update SmartBatch bindings, or toggle isActive. Built-in "System" templates are read-only and return 403 (system_template_readonly) if targeted.

Endpoint​

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

The Smart-Agent proxy (https://ai.verifik.co) exposes the same /v2/... paths and requires your own Authorization: Bearer <VERIFIK_JWT> header.

Headers​

NameValue
Content-Typeapplication/json
Acceptapplication/json
AuthorizationBearer <VERIFIK_JWT>

Parameters​

NameTypeRequiredDescription
idstringYesSmart Report template ObjectId.

Body​

All body fields are optional on update.

NameTypeRequiredDescription
namestringNoUpdated template display name. Maximum 150 characters.
descriptionstringNoUpdated template description. Maximum 500 characters.
batchConfigurationstringNoObjectId of an associated SmartBatch configuration.
countrystringNoCountry identifier or label. Maximum 60 characters.
categorystringNoVerification domain: "citizen", "company", or "vehicle".
isActivebooleanNoActivate or deactivate the template.
logostringNoBrand logo URL or base64 data URI.
primaryColorstringNoPrimary brand accent hex color.
identityColorstringNoSecondary/identity accent hex color.
pageBackgroundColorstringNoPage background hex color.
headerobjectNoCustom header layout and content configuration.
footerobjectNoCustom footer layout and content configuration.
legendstringNoFooter legend or compliance notice text. Maximum 2000 characters.
legendPositionstringNoLegend alignment: "left", "center", or "right".
termsAndConditionsstringNoLegal terms and conditions text. Maximum 4000 characters.
termsPositionstringNoTerms alignment: "left", "center", or "right".
sectionsobject[]NoArray of ReportSection objects (id, type, order, dataPath, label, staticContent, columns, columnsPerRow, keyOverrides, valueRules, chartKind, style, condition, frame, etc.).
pageSizestringNoPDF paper size: "A4", "Letter", or "Legal".
layoutVersionintegerNoLayout renderer version: 1 or 2.
orientationstringNoPage orientation: "portrait" or "landscape".
marginsobjectNoMargin object `{ "top": 40, "right": 40, "bottom": 40, "left": 40 }`.
pdfEnginestringNoPDF rendering engine: "puppeteer" or "pdfkit".
showPageNumbersbooleanNoShow page numbers on rendered PDFs.
pageNumberPositionstringNoPage number position: "top-left", "top-center", "top-right", "bottom-left", "bottom-center", or "bottom-right".
pageNumberDividerboolean / stringNoPage number divider configuration.
watermarkobjectNoWatermark overlay settings.
securityobjectNoPDF protection settings `{ "enabled": true, "password": "..." }`. Passing "******" or omitting password preserves the existing encrypted password.
signatureobjectNoSignature block configuration.
logoSettingsobjectNoLogo sizing and placement configuration.
sheetImagesobject[]NoEmbedded template image assets. Maximum 12 items.
customFontsobject[]NoCustom font declarations (Google Fonts, external URL, or uploaded file). Maximum 6 items.
headerLogosobject[]NoAdditional logos displayed in the header. Maximum 16 items.
bodyTopPaddingnumberNoTop padding applied to the document body, from 0 to 600.
sampleDataobjectNoSample verification payload stored with the template for previews and sample downloads.
endpointDesignobjectNoEndpoint-specific presentation metadata.
reportThemestring / objectNoTheme preset ID ("premium_dark", "light_cards", "editorial", "dashboard") or object (id, scoreScale, scoreEnabled, scoreProfile, locale, density, eyebrow, coverTitle, headlines, legalNote, showVerifiedBadge, showWeights, showDeductions, showFields, showHowItWorks, blocks, tokens).

Request​

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

async function run() {
const id = "67c1f94b2d8a1c0012a4b301";
const res = await fetch(
`https://api.verifik.co/v2/smart-report-templates/${id}`,
{
method: "PUT",
headers: {
"Content-Type": "application/json",
Accept: "application/json",
Authorization: `Bearer ${process.env.VERIFIK_JWT}`,
},
body: JSON.stringify({
name: "Colombia Driver Onboarding Report v2",
primaryColor: "#0F766E",
isActive: true,
security: {
enabled: true,
password: "******",
},
reportTheme: {
id: "light_cards",
scoreEnabled: true,
scoreProfile: "cabify_driver",
scoreScale: "percent",
density: "compact",
},
}),
}
);

console.log(await res.json());
}

run();

Response​

{
"data": {
"_id": "67c1f94b2d8a1c0012a4b301",
"client": "507f1f77bcf86cd799439013",
"name": "Colombia Driver Onboarding Report v2",
"primaryColor": "#0F766E",
"isActive": true,
"security": {
"enabled": true
},
"reportTheme": {
"id": "light_cards",
"scoreEnabled": true,
"scoreProfile": "cabify_driver",
"scoreScale": "percent",
"density": "compact"
},
"updatedAt": "2026-09-10T04:10:00.000Z"
}
}

Notes​

  • Passing security.password: "******" or omitting security.password preserves the template's existing encrypted password instead of overwriting it.
  • Built-in "System" templates cannot be updated (403 system_template_readonly). Create a custom copy via Create a report template when customizing a system starter.
  • Store preview helpers (scoreScale, themeTokens, scoreSettings) under reportTheme (scoreScale, tokens, scoreEnabled/scoreProfile) when saving changes.