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

# Harness-Integration aktualisieren

> Aktualisiert ausgewählte Felder. Bei Änderungen am Token, an der Basis-URL oder am Gateway-Präfix werden die Zugangsdaten erneut überprüft. Ein Ersatz-Token muss zum vorhandenen Harness-Account gehören. Erfordert die Berechtigung `integrations.manage_integration`.



## OpenAPI

````yaml /de/api-reference/openapi.json patch /integrations/harness/{integration_uuid}
openapi: 3.0.0
info:
  title: Corgea API
  version: 1.0.0
  description: >-
    API für die Interaktion mit den Scan- und
    Schwachstellenmanagement-Funktionen von Corgea
servers:
  - url: https://www.corgea.app/api/v1
    description: Produktionsserver
security:
  - CorgeaToken: []
  - BearerAuth: []
paths:
  /integrations/harness/{integration_uuid}:
    parameters:
      - name: integration_uuid
        in: path
        required: true
        description: UUID der Harness-Integration
        schema:
          type: string
          format: uuid
    patch:
      tags:
        - Harness-Integrationen
      summary: Harness-Integration aktualisieren
      description: >-
        Aktualisiert ausgewählte Felder. Bei Änderungen am Token, an der
        Basis-URL oder am Gateway-Präfix werden die Zugangsdaten erneut
        überprüft. Ein Ersatz-Token muss zum vorhandenen Harness-Account
        gehören. Erfordert die Berechtigung `integrations.manage_integration`.
      operationId: updateHarnessIntegration
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateHarnessIntegrationRequest'
      responses:
        '200':
          description: Harness-Integration erfolgreich aktualisiert
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HarnessIntegrationWriteResponse'
        '400':
          description: >-
            Ungültiger Request, Account stimmt nicht überein oder Zugangsdaten
            konnten nicht überprüft werden
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: API-Zugriff oder erforderliche Berechtigung verweigert
        '404':
          description: Integration nicht gefunden
        '409':
          description: >-
            Für diesen Account und diese Organization Allowlist ist bereits eine
            Integration vorhanden
components:
  schemas:
    UpdateHarnessIntegrationRequest:
      type: object
      properties:
        secure_token:
          type: string
          writeOnly: true
          description: Ersatz-PAT oder Service Account Token für denselben Harness-Account.
        name:
          type: string
        org_allowlist:
          type: array
          items:
            type: string
        base_url:
          type: string
          format: uri
        gateway_prefix:
          type: string
    HarnessIntegrationWriteResponse:
      allOf:
        - $ref: '#/components/schemas/HarnessIntegrationResponse'
        - type: object
          required:
            - credentials_verified
          properties:
            credentials_verified:
              type: boolean
              enum:
                - true
    HarnessIntegrationResponse:
      type: object
      required:
        - status
        - integration
      properties:
        status:
          type: string
          enum:
            - ok
        integration:
          $ref: '#/components/schemas/HarnessIntegration'
    HarnessIntegration:
      type: object
      description: >-
        Eine Harness-Code-SCM-Integration. Werte von Zugangsdaten werden nie
        zurückgegeben.
      required:
        - id
        - uuid
        - type
        - name
        - account_id
        - account_name
        - org_allowlist
        - base_url
        - gateway_prefix
        - expired
      properties:
        id:
          type: integer
        uuid:
          type: string
          format: uuid
        type:
          type: string
          enum:
            - harness
        name:
          type: string
        account_id:
          type: string
          description: Aus dem Token abgeleitete Harness-Account-ID.
        account_name:
          type: string
        org_allowlist:
          type: array
          description: >-
            Für diese Integration verfügbare Harness-Organisationskennungen.
            Eine leere Liste lässt jede Organisation zu, auf die das Token
            zugreifen kann.
          items:
            type: string
        base_url:
          type: string
          format: uri
        gateway_prefix:
          type: string
        expired:
          type: boolean
        created_at:
          type: string
          format: date-time
          nullable: true
        updated_at:
          type: string
          format: date-time
          nullable: true
  responses:
    Unauthorized:
      description: Ungültiges oder fehlendes Token
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Missing or invalid authorization header
  securitySchemes:
    CorgeaToken:
      type: apiKey
      in: header
      name: CORGEA-TOKEN
      description: API-Key für die Authentifizierung
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth2-Access-Token (JWT) im Authorization-Header

````