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

# Update Chef PKI Sync

> Update the specified Chef PKI Sync.



## OpenAPI

````yaml PATCH /api/v1/cert-manager/syncs/chef/{pkiSyncId}
openapi: 3.0.3
info:
  title: Infisical API
  description: List of all available APIs that can be consumed
  version: 0.0.1
servers:
  - url: https://us.infisical.com
    description: Production server (US)
  - url: https://eu.infisical.com
    description: Production server (EU)
  - url: http://localhost:8080
    description: Local server
security: []
paths:
  /api/v1/cert-manager/syncs/chef/{pkiSyncId}:
    patch:
      tags:
        - PKI Syncs
      description: Update the specified Chef PKI Sync.
      operationId: updateChefPkiSync
      parameters:
        - schema:
            type: string
          in: path
          name: pkiSyncId
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 256
                description:
                  type: string
                isAutoSyncEnabled:
                  type: boolean
                destinationConfig:
                  type: object
                  properties:
                    dataBagName:
                      type: string
                      minLength: 1
                      maxLength: 255
                  required:
                    - dataBagName
                  additionalProperties: false
                syncOptions:
                  type: object
                  properties:
                    canImportCertificates:
                      type: boolean
                      default: false
                    canRemoveCertificates:
                      type: boolean
                      default: true
                    includeRootCa:
                      type: boolean
                      default: false
                    preserveItemOnRenewal:
                      type: boolean
                      default: true
                    updateExistingCertificates:
                      type: boolean
                      default: true
                    certificateNameSchema:
                      type: string
                    fieldMappings:
                      type: object
                      properties:
                        certificate:
                          type: string
                          minLength: 1
                          default: certificate
                        privateKey:
                          type: string
                          minLength: 1
                          default: private_key
                        certificateChain:
                          type: string
                          minLength: 1
                          default: certificate_chain
                        caCertificate:
                          type: string
                          minLength: 1
                          default: ca_certificate
                      additionalProperties: false
                      default:
                        certificate: certificate
                        privateKey: private_key
                        certificateChain: certificate_chain
                        caCertificate: ca_certificate
                  additionalProperties: false
                subscriberId:
                  type: string
                  nullable: true
                connectionId:
                  type: string
              additionalProperties: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  name:
                    type: string
                    maxLength: 256
                  description:
                    type: string
                    nullable: true
                  destination:
                    type: string
                    enum:
                      - chef
                  isAutoSyncEnabled:
                    type: boolean
                  destinationConfig:
                    type: object
                    properties:
                      dataBagName:
                        type: string
                        minLength: 1
                        maxLength: 255
                    required:
                      - dataBagName
                    additionalProperties: false
                  syncOptions:
                    type: object
                    properties:
                      canImportCertificates:
                        type: boolean
                        default: false
                      canRemoveCertificates:
                        type: boolean
                        default: true
                      includeRootCa:
                        type: boolean
                        default: false
                      preserveItemOnRenewal:
                        type: boolean
                        default: true
                      updateExistingCertificates:
                        type: boolean
                        default: true
                      certificateNameSchema:
                        type: string
                      fieldMappings:
                        type: object
                        properties:
                          certificate:
                            type: string
                            minLength: 1
                            default: certificate
                          privateKey:
                            type: string
                            minLength: 1
                            default: private_key
                          certificateChain:
                            type: string
                            minLength: 1
                            default: certificate_chain
                          caCertificate:
                            type: string
                            minLength: 1
                            default: ca_certificate
                        additionalProperties: false
                        default:
                          certificate: certificate
                          privateKey: private_key
                          certificateChain: certificate_chain
                          caCertificate: ca_certificate
                    additionalProperties: false
                  subscriberId:
                    type: string
                    format: uuid
                    nullable: true
                  connectionId:
                    type: string
                    format: uuid
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                  syncStatus:
                    type: string
                    nullable: true
                  lastSyncedAt:
                    type: string
                    format: date-time
                    nullable: true
                required:
                  - id
                  - name
                  - destination
                  - isAutoSyncEnabled
                  - destinationConfig
                  - syncOptions
                  - connectionId
                  - createdAt
                  - updatedAt
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 400
                  message:
                    type: string
                  error:
                    type: string
                  details: {}
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 401
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 403
                  message:
                    type: string
                  details: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 404
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '422':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 422
                  message: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - error
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 500
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false

````