---
title: "PATCH /api/v1/pki/subscribers/{subscriberName}"
method: PATCH
path: "/api/v1/pki/subscribers/{subscriberName}"
tags: ["PKI Subscribers"]
---

# PATCH /api/v1/pki/subscribers/{subscriberName}

`PATCH /api/v1/pki/subscribers/{subscriberName}`

Update PKI Subscriber

## Path parameters

- `subscriberName` string, required

## Request body

- object
  - `projectId` string, required — The ID of the project to update the PKI subscriber in.
  - `caId` string, uuid — The ID of the CA that will issue certificates for the PKI subscriber to update to.
  - `name` string — The name of the PKI subscriber to update to.
  - `commonName` string — The common name (CN) to be used on certificates issued for this subscriber to update to.
  - `status` 'active' | 'disabled' — The status of the PKI subscriber to update to. This can be one of active or disabled.
  - `subjectAlternativeNames` string[] — A comma-delimited list of Subject Alternative Names (SANs) to be used on certificates issued for this subscriber; these can be host names or email addresses.
  - `ttl` string — The time to live for the certificates issued for this subscriber such as 1m, 1h, 1d, 1y, ...
  - `keyUsages` string[] — The key usage extension to be used on certificates issued for this subscriber to update to.
  - `extendedKeyUsages` string[] — The extended key usage extension to be used on certificates issued for this subscriber to update to.
  - `enableAutoRenewal` boolean — Whether or not to enable auto renewal for the PKI subscriber.
  - `autoRenewalPeriodInDays` number — The period in days to auto renew the PKI subscriber's certificates.
  - `properties` object — Additional subscriber properties and subject fields
    - `azureTemplateType` string — Azure ADCS Certificate Template Type
    - `country` string — Country (C) - Two uppercase letter country code (e.g., US, CA, GB)
    - `emailAddress` string, email — Email Address - Valid email format between 6 and 64 characters

## Response `200`

Default Response

- object
  - `id` string, uuid, required
  - `projectId` string, required
  - `caId` string, uuid, nullable
  - `name` string, required
  - `commonName` string, required
  - `status` string, required
  - `subjectAlternativeNames` string[], required
  - `ttl` string, nullable
  - `keyUsages` string[], required
  - `extendedKeyUsages` string[], required
  - `lastOperationStatus` string, nullable
  - `lastOperationMessage` string, nullable
  - `lastOperationAt` string, date-time, nullable
  - `enableAutoRenewal` boolean
  - `autoRenewalPeriodInDays` number, nullable
  - `lastAutoRenewAt` string, date-time, nullable
  - `properties` unknown
  - `supportsImmediateCertIssuance` boolean

## 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)
