---
title: "Partially update an existing template"
method: PATCH
path: "/templates/{id}/single-step"
tags: ["Template"]
---

# Partially update an existing template

`PATCH /templates/{id}/single-step`

Partially updates an existing template. Only provided fields (name, description, type, file) will be updated. If file is provided, CSV validation and schema generation will be performed.

## Path parameters

- `id` string, required

## Headers

- `tenant-id` string, required

## Response `200`

Template updated successfully

- SingleStepTemplateFlowResponse
  - `fields` Field[]
    - `name` string
    - `mappedKey` string
    - `mappedEntity` string
    - `entityGroup` string
    - `isRequired` boolean
    - `isStaticField` boolean
    - `isSingleSelect` boolean
    - `validationRegex` string
    - `description` string
    - `enum` string[]
    - `singleSelect` boolean
  - `status` string
  - `templateId` string
  - `templateUrl` string
  - `schemaUrl` string

## Other responses

- `400` — Invalid input or request (missing tenant-id, invalid file type, validation errors)
- `401` — Unauthorized - Authentication required
- `403` — Forbidden - Insufficient permissions
- `404` — Template not found
- `500` — Internal server error

---

[API](https://skmtc.dev/certifyos/apis/certify-api-layer.md) · [All operations](https://skmtc.dev/certifyos/apis/certify-api-layer/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/certifyos/certify-api-layer/revisions/3d27e9019c7b/schema)
