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

# Update integration



## OpenAPI

````yaml /api/openapi.yaml patch /api/v1/integrations/{integration}
openapi: 3.1.0
info:
  title: OpenCluster Control Plane API
  version: 0.1.0
  description: HTTP contract for the OpenCluster product API and inbound webhook endpoints.
  license:
    name: Apache-2.0
servers:
  - url: http://localhost:8080
    description: Local self-hosted deployment
security: []
tags:
  - name: Authentication
  - name: Organizations
  - name: Members
  - name: Sessions
  - name: Policy
  - name: Audit
  - name: Integration Types
  - name: Integrations
  - name: Relays
  - name: Incidents
  - name: Investigations
  - name: Conversations
  - name: Postmortems
  - name: Webhook Deliveries
  - name: Webhook Intake
  - name: Metadata
paths:
  /api/v1/integrations/{integration}:
    parameters:
      - $ref: '#/components/parameters/IntegrationID'
    patch:
      tags:
        - Integrations
      summary: Update integration
      operationId: updateIntegration
      parameters:
        - $ref: '#/components/parameters/Organization'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateIntegrationRequest'
        required: true
      responses:
        '200':
          $ref: '#/components/responses/Integration'
        default:
          $ref: '#/components/responses/ErrorResponse'
      security:
        - SessionCookie: []
components:
  parameters:
    IntegrationID:
      name: integration
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/UUID'
    Organization:
      name: X-OpenCluster-Organization
      in: header
      required: true
      description: Selects the Organization whose data and membership are authorized.
      schema:
        $ref: '#/components/schemas/OrganizationID'
      example: acme-production
  schemas:
    UpdateIntegrationRequest:
      type: object
      additionalProperties: false
      minProperties: 1
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 128
        configuration:
          type: object
          additionalProperties: true
        labels:
          type: object
          maxProperties: 32
          additionalProperties:
            type: string
            maxLength: 256
    UUID:
      type: string
      format: uuid
    OrganizationID:
      type: string
      pattern: ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$
      minLength: 1
      maxLength: 63
    Integration:
      type: object
      additionalProperties: false
      required:
        - id
        - type
        - name
        - status
        - disabled
        - configuration
        - toolAvailability
        - createdAt
        - updatedAt
      properties:
        id:
          $ref: '#/components/schemas/UUID'
        type:
          type: string
          pattern: ^[a-z][a-z0-9_]{0,63}$
        name:
          type: string
          minLength: 1
          maxLength: 128
        status:
          type: string
          enum:
            - configured
            - active
            - degraded
            - failed
        disabled:
          type: boolean
        configuration:
          type: object
          additionalProperties: true
        labels:
          type: object
          maxProperties: 32
          additionalProperties:
            type: string
            maxLength: 256
        relayId:
          $ref: '#/components/schemas/UUID'
        webhook:
          $ref: '#/components/schemas/WebhookReference'
        credential:
          $ref: '#/components/schemas/SecretReference'
        lastVerifiedAt:
          $ref: '#/components/schemas/Timestamp'
        verifyNote:
          type: string
          maxLength: 1024
        verifyFacts:
          type: object
          additionalProperties: true
        inbound:
          type: object
          additionalProperties: false
          required:
            - available
          properties:
            available:
              type: boolean
            reason:
              type: string
              maxLength: 1024
        toolAvailability:
          type: array
          items:
            type: object
            additionalProperties: false
            required:
              - tool
              - available
            properties:
              tool:
                type: string
              available:
                type: boolean
              reason:
                type: string
                maxLength: 1024
        createdBy:
          type: string
          maxLength: 256
        createdAt:
          $ref: '#/components/schemas/Timestamp'
        updatedAt:
          $ref: '#/components/schemas/Timestamp'
    Error:
      type: object
      additionalProperties: false
      required:
        - error
      properties:
        error:
          type: string
          minLength: 1
          maxLength: 1024
          example: the selected Organization is not available to this caller
        reason:
          type: string
          enum:
            - credential_rejected
            - session_expired
            - session_revoked
        requires:
          type: string
          minLength: 1
          maxLength: 128
    WebhookReference:
      type: object
      additionalProperties: false
      required:
        - url
        - secretFingerprint
        - secretCreatedAt
      properties:
        url:
          type: string
          format: uri-reference
        secretFingerprint:
          type: string
          minLength: 8
          maxLength: 128
        secretCreatedAt:
          $ref: '#/components/schemas/Timestamp'
        secretRotatedAt:
          $ref: '#/components/schemas/Timestamp'
    SecretReference:
      type: object
      additionalProperties: false
      required:
        - fingerprint
        - createdAt
      properties:
        fingerprint:
          type: string
          minLength: 8
          maxLength: 128
        createdAt:
          $ref: '#/components/schemas/Timestamp'
        rotatedAt:
          $ref: '#/components/schemas/Timestamp'
    Timestamp:
      type: string
      format: date-time
  responses:
    Integration:
      description: Configured Integration.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Integration'
    ErrorResponse:
      description: The operation did not complete.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    SessionCookie:
      type: apiKey
      in: cookie
      name: __Host-oc_session

````