---
title: "Patch verification template"
method: PATCH
path: "/templates/verification/{templateId}"
tags: ["VerificationTemplates"]
---

# Patch verification template

`PATCH /templates/verification/{templateId}`

## Request body

- PatchVerificationTemplateRequest
  - `name` string
  - `description` string, nullable
  - `enabled` boolean
  - `spec` VerificationTemplateSpec
    - `queryRef` VerificationTemplateQueryRef, required
      - `verifierId` string — Configured verifier instance that owns/uses the query.
      - `bindingId` string, uuid, nullable — Optional verifier DCQL binding id. Prefer this when the template should follow the binding's pinned-version semantics.
      - `queryId` string, required — Stable DCQL query id configured for the verifier instance, for example `age-check`.
      - `version` integer, nullable — Pinned DCQL query version. Null means latest active version for the binding/query.
    - `verifierDesignId` string, uuid, nullable
    - `request_defaults` object — Stable partial authorization-request defaults merged into the execution request before decoding as the real runtime CreateAuthorizationRequest model.

## Response `200`

Updated verification template.

- VerificationTemplateRecord
  - `id` string, uuid, required
  - `tenantId` string, required
  - `verifierId` string, required — Configured verifier instance this template executes against.
  - `name` string, required
  - `description` string, nullable
  - `enabled` boolean, required
  - `spec` VerificationTemplateSpec, required
    - `queryRef` VerificationTemplateQueryRef, required
      - `verifierId` string — Configured verifier instance that owns/uses the query.
      - `bindingId` string, uuid, nullable — Optional verifier DCQL binding id. Prefer this when the template should follow the binding's pinned-version semantics.
      - `queryId` string, required — Stable DCQL query id configured for the verifier instance, for example `age-check`.
      - `version` integer, nullable — Pinned DCQL query version. Null means latest active version for the binding/query.
    - `verifierDesignId` string, uuid, nullable
    - `request_defaults` object — Stable partial authorization-request defaults merged into the execution request before decoding as the real runtime CreateAuthorizationRequest model.
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

---

[API](https://skmtc.dev/sphereon-opensource/apis/oid4vp-verification-template-api.md) · [All operations](https://skmtc.dev/sphereon-opensource/apis/oid4vp-verification-template-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sphereon-opensource/oid4vp-verification-template-api/revisions/5cbc0f645938/schema)
