> ## Documentation Index
> Fetch the complete documentation index at: https://ngrok.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update

> Update attributes of a Certificate Authority by ID




## OpenAPI

````yaml https://raw.githubusercontent.com/ngrok/ngrok-openapi/refs/heads/main/ngrok.yaml patch /certificate_authorities/{id}
openapi: 3.0.0
info:
  title: ngrok OpenAPI
  version: 1.0.0
servers:
  - url: https://api.ngrok.com
security:
  - authentication: []
paths:
  /certificate_authorities/{id}:
    patch:
      tags:
        - CertificateAuthorities
      summary: Update
      description: |
        Update attributes of a Certificate Authority by ID
      operationId: CertificateAuthoritiesUpdate
      parameters:
        - $ref: '#/components/parameters/ngrokVersion'
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CertificateAuthorityUpdate'
      responses:
        '200':
          description: |
            Update attributes of a Certificate Authority by ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CertificateAuthority'
components:
  parameters:
    ngrokVersion:
      name: ngrok-version
      in: header
      required: true
      schema:
        type: integer
        default: 2
  schemas:
    CertificateAuthorityUpdate:
      type: object
      properties:
        id:
          description: n/a
          type: string
        description:
          description: >
            human-readable description of this Certificate Authority. optional,
            max 255 bytes.
          type: string
        metadata:
          description: >
            arbitrary user-defined machine-readable data of this Certificate
            Authority. optional, max 4096 bytes.
          type: string
    CertificateAuthority:
      type: object
      properties:
        id:
          description: |
            unique identifier for this Certificate Authority
          type: string
        uri:
          description: |
            URI of the Certificate Authority API resource
          type: string
        created_at:
          description: >
            timestamp when the Certificate Authority was created, RFC 3339
            format
          type: string
        description:
          description: >
            human-readable description of this Certificate Authority. optional,
            max 255 bytes.
          type: string
        metadata:
          description: >
            arbitrary user-defined machine-readable data of this Certificate
            Authority. optional, max 4096 bytes.
          type: string
        ca_pem:
          description: |
            raw PEM of the Certificate Authority
          type: string
        subject_common_name:
          description: |
            subject common name of the Certificate Authority
          type: string
        not_before:
          description: >
            timestamp when this Certificate Authority becomes valid, RFC 3339
            format
          type: string
        not_after:
          description: >
            timestamp when this Certificate Authority becomes invalid, RFC 3339
            format
          type: string
        key_usages:
          description: >
            set of actions the private key of this Certificate Authority can be
            used for
          type: array
          items:
            type: string
        extended_key_usages:
          description: >
            extended set of actions the private key of this Certificate
            Authority can be used for
          type: array
          items:
            type: string
  securitySchemes:
    authentication:
      type: http
      scheme: bearer

````