PATCH
/
api
/
v1
/
pki
/
certificate-templates
/
{certificateTemplateId}
cURL
curl --request PATCH \
  --url https://us.infisical.com/api/v1/pki/certificate-templates/{certificateTemplateId} \
  --header 'Content-Type: application/json' \
  --data '{
  "caId": "<string>",
  "pkiCollectionId": "<string>",
  "name": "<string>",
  "commonName": "<string>",
  "subjectAlternativeName": "<string>",
  "ttl": "<string>",
  "keyUsages": [
    "digitalSignature"
  ],
  "extendedKeyUsages": [
    "clientAuth"
  ]
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "caId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "commonName": "<string>",
  "subjectAlternativeName": "<string>",
  "pkiCollectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "ttl": "<string>",
  "keyUsages": [
    "<string>"
  ],
  "extendedKeyUsages": [
    "<string>"
  ],
  "projectId": "<string>",
  "caName": "<string>"
}

Path Parameters

certificateTemplateId
string
required

The ID of the certificate template to update.

Body

application/json
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.

Minimum length: 1
commonName
string

The updated regular expression string for validating common names.

Required string length: 1 - 100
subjectAlternativeName
string

The updated regular expression string for validating subject alternative names.

Required string length: 1 - 100
ttl
string

The updated max TTL for the template.

keyUsages
enum<string>[]

The updated key usage constraint or default value for when template is used during certificate issuance.

extendedKeyUsages
enum<string>[]

The updated extended key usage constraint or default value for when template is used during certificate issuance.

Response

Default Response

id
string<uuid>
required
caId
string<uuid>
required
name
string
required
commonName
string
required
subjectAlternativeName
string
required
ttl
string
required
projectId
string
required
caName
string
required
pkiCollectionId
string<uuid> | null
keyUsages
string[] | null
extendedKeyUsages
string[] | null