{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cockroach-labs/json-schema/cockroach-labs-update-client-cacert-body-schema.json",
  "title": "UpdateClientCACertRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cockroach-labs-client-ca-certificates-api-openapi.yml#/components/schemas/UpdateClientCACertBody",
  "type": "object",
  "properties": {
    "update_mode": {
      "$ref": "#/$defs/ClientCACertUpdateMode.Type"
    },
    "x509_pem_cert": {
      "description": "x509_pem_cert is the PEM-encoded X.509 CA certificate to apply.",
      "type": "string"
    }
  },
  "$defs": {
    "ClientCACertUpdateMode.Type": {
      "description": "- REPLACE: REPLACE overwrites all existing certs with the provided cert. This\nmatches the behavior of the SetClientCACert (POST) endpoint. This is the\ndefault when update_mode is omitted.\n - APPEND: APPEND adds the provided cert to the existing cert bundle. This mode\nenables no-downtime certificate rotation: append the new cert, roll it\nout across clients, then REPLACE with only the new cert to drop the old\none.",
      "type": "string",
      "enum": [
        "REPLACE",
        "APPEND"
      ],
      "title": "Defines the mode used for CA certificate updates:"
    }
  }
}