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
| Name | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer <VERIFIK_JWT> |
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Smart Report template ObjectId. |
Body
All body fields are optional on update.
| Name | Type | Required | Description |
|---|---|---|---|
name | string | No | Updated template display name. Maximum 150 characters. |
description | string | No | Updated template description. Maximum 500 characters. |
batchConfiguration | string | No | ObjectId of an associated SmartBatch configuration. |
country | string | No | Country identifier or label. Maximum 60 characters. |
category | string | No | Verification domain: "citizen", "company", or "vehicle". |
isActive | boolean | No | Activate or deactivate the template. |
logo | string | No | Brand logo URL or base64 data URI. |
primaryColor | string | No | Primary brand accent hex color. |
identityColor | string | No | Secondary/identity accent hex color. |
pageBackgroundColor | string | No | Page background hex color. |
header | object | No | Custom header layout and content configuration. |
footer | object | No | Custom footer layout and content configuration. |
legend | string | No | Footer legend or compliance notice text. Maximum 2000 characters. |
legendPosition | string | No | Legend alignment: "left", "center", or "right". |
termsAndConditions | string | No | Legal terms and conditions text. Maximum 4000 characters. |
termsPosition | string | No | Terms alignment: "left", "center", or "right". |
sections | object[] | No | Array of ReportSection objects (id, type, order, dataPath, label, staticContent, columns, columnsPerRow, keyOverrides, valueRules, chartKind, style, condition, frame, etc.). |
pageSize | string | No | PDF paper size: "A4", "Letter", or "Legal". |
layoutVersion | integer | No | Layout renderer version: 1 or 2. |
orientation | string | No | Page orientation: "portrait" or "landscape". |
margins | object | No | Margin object `{ "top": 40, "right": 40, "bottom": 40, "left": 40 }`. |
pdfEngine | string | No | PDF rendering engine: "puppeteer" or "pdfkit". |
showPageNumbers | boolean | No | Show page numbers on rendered PDFs. |
pageNumberPosition | string | No | Page number position: "top-left", "top-center", "top-right", "bottom-left", "bottom-center", or "bottom-right". |
pageNumberDivider | boolean / string | No | Page number divider configuration. |
watermark | object | No | Watermark overlay settings. |
security | object | No | PDF protection settings `{ "enabled": true, "password": "..." }`. Passing "******" or omitting password preserves the existing encrypted password. |
signature | object | No | Signature block configuration. |
logoSettings | object | No | Logo sizing and placement configuration. |
sheetImages | object[] | No | Embedded template image assets. Maximum 12 items. |
customFonts | object[] | No | Custom font declarations (Google Fonts, external URL, or uploaded file). Maximum 6 items. |
headerLogos | object[] | No | Additional logos displayed in the header. Maximum 16 items. |
bodyTopPadding | number | No | Top padding applied to the document body, from 0 to 600. |
sampleData | object | No | Sample verification payload stored with the template for previews and sample downloads. |
endpointDesign | object | No | Endpoint-specific presentation metadata. |
reportTheme | string / object | No | Theme 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
- Node.js
- PHP
- Python
- Go
- cURL
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();
<?php
$id = "67c1f94b2d8a1c0012a4b301";
$payload = [
"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",
],
];
$ch = curl_init("https://api.verifik.co/v2/smart-report-templates/" . $id);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Content-Type: application/json",
"Accept: application/json",
"Authorization: Bearer " . getenv("VERIFIK_JWT"),
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
echo curl_exec($ch);
curl_close($ch);
import os
import requests
template_id = "67c1f94b2d8a1c0012a4b301"
url = f"https://api.verifik.co/v2/smart-report-templates/{template_id}"
headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": f"Bearer {os.getenv('VERIFIK_JWT')}",
}
payload = {
"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",
},
}
r = requests.put(url, json=payload, headers=headers)
print(r.json())
package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
id := "67c1f94b2d8a1c0012a4b301"
body, _ := json.Marshal(map[string]interface{}{
"name": "Colombia Driver Onboarding Report v2",
"primaryColor": "#0F766E",
"isActive": true,
"security": map[string]interface{}{
"enabled": true,
"password": "******",
},
"reportTheme": map[string]interface{}{
"id": "light_cards",
"scoreEnabled": true,
"scoreProfile": "cabify_driver",
"scoreScale": "percent",
"density": "compact",
},
})
req, _ := http.NewRequest("PUT", "https://api.verifik.co/v2/smart-report-templates/"+id, bytes.NewReader(body))
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Accept", "application/json")
req.Header.Set("Authorization", "Bearer "+os.Getenv("VERIFIK_JWT"))
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
var out map[string]interface{}
json.NewDecoder(resp.Body).Decode(&out)
fmt.Println(out)
}
curl -X PUT "https://api.verifik.co/v2/smart-report-templates/67c1f94b2d8a1c0012a4b301" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer $VERIFIK_JWT" \
-d '{
"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"
}
}'
Response
- 200
- 401
- 403
- 404
- 409
- 422
{
"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"
}
}
{
"message": "Unauthorized",
"code": "Unauthorized"
}
{
"message": "system_template_readonly",
"code": "Forbidden"
}
{
"message": "not_found",
"code": "NotFound"
}
{
"message": "\"pageSize\" must be one of [A4, Letter, Legal]",
"code": "MissingParameter"
}
{
"message": "Validation failed",
"code": "UnprocessableEntity"
}
Notes
- Passing
security.password: "******"or omittingsecurity.passwordpreserves the template's existing encrypted password instead of overwriting it. - Built-in
"System"templates cannot be updated (403system_template_readonly). Create a custom copy via Create a report template when customizing a system starter. - Store preview helpers (
scoreScale,themeTokens,scoreSettings) underreportTheme(scoreScale,tokens,scoreEnabled/scoreProfile) when saving changes.