---
title: "Update"
method: PATCH
path: "/certificate_authorities/{id}"
tags: ["CertificateAuthorities"]
---

# Update

`PATCH /certificate_authorities/{id}`

Update attributes of a Certificate Authority by ID

## Path parameters

- `id` string, required

## Headers

- `ngrok-version` integer, required

## Request body

- CertificateAuthorityUpdate
  - `id` string — n/a
  - `description` string — human-readable description of this Certificate Authority. optional, max 255 bytes.
  - `metadata` string — arbitrary user-defined machine-readable data of this Certificate Authority. optional, max 4096 bytes.

## Response `200`

Update attributes of a Certificate Authority by ID

- CertificateAuthority
  - `id` string — unique identifier for this Certificate Authority
  - `uri` string — URI of the Certificate Authority API resource
  - `created_at` string — timestamp when the Certificate Authority was created, RFC 3339 format
  - `description` string — human-readable description of this Certificate Authority. optional, max 255 bytes.
  - `metadata` string — arbitrary user-defined machine-readable data of this Certificate Authority. optional, max 4096 bytes.
  - `ca_pem` string — raw PEM of the Certificate Authority
  - `subject_common_name` string — subject common name of the Certificate Authority
  - `not_before` string — timestamp when this Certificate Authority becomes valid, RFC 3339 format
  - `not_after` string — timestamp when this Certificate Authority becomes invalid, RFC 3339 format
  - `key_usages` string[] — set of actions the private key of this Certificate Authority can be used for
  - `extended_key_usages` string[] — extended set of actions the private key of this Certificate Authority can be used for

---

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