---
title: "PATCH /api/v1/pki/certificate-templates/{certificateTemplateId}"
method: PATCH
path: "/api/v1/pki/certificate-templates/{certificateTemplateId}"
tags: ["PKI Certificate Templates"]
---

# PATCH /api/v1/pki/certificate-templates/{certificateTemplateId}

`PATCH /api/v1/pki/certificate-templates/{certificateTemplateId}`

## Path parameters

- `certificateTemplateId` string, required

## Request body

- object
  - `caId` string — The ID of the certificate authority to update the association with the template.
  - `pkiCollectionId` string — The ID of the PKI collection to update the binding to the template.
  - `name` string — The updated name of the template.
  - `commonName` string — The updated regular expression string for validating common names.
  - `subjectAlternativeName` string — The updated regular expression string for validating subject alternative names.
  - `ttl` string — The updated max TTL for the template.
  - `keyUsages` string[] — The updated key usage constraint or default value for when template is used during certificate issuance.
  - `extendedKeyUsages` string[] — The updated extended key usage constraint or default value for when template is used during certificate issuance.

## Response `200`

Default Response

- object
  - `id` string, uuid, required
  - `caId` string, uuid, required
  - `name` string, required
  - `commonName` string, required
  - `subjectAlternativeName` string, required
  - `pkiCollectionId` string, uuid, nullable
  - `ttl` string, required
  - `keyUsages` string[], nullable
  - `extendedKeyUsages` string[], nullable
  - `projectId` string, required
  - `caName` string, required

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `422` — Default Response
- `500` — Default Response

---

[API](https://skmtc.net/infisical/apis/infisical-api.md) · [All operations](https://skmtc.net/infisical/apis/infisical-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/infisical/infisical-api/versions/f10a4f8c1d41/schema)
