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

# Update an integration

> Updates the name, description, or config of an existing integration. If config is provided, it is validated against the JSON Schema. Empty body returns the current state unchanged.



## OpenAPI

````yaml /api-reference/openapi.json patch /api/integrations/{id}
openapi: 3.0.0
info:
  title: Open Attack Surface Management
  description: Open-source platform for cybersecurity Attack Surface Management (ASM)
  version: '1.0'
  contact: {}
servers:
  - url: https://{baseUrl}/api/v1
    variables:
      baseUrl:
        default: localhost:3000
        description: API server hostname with port (e.g. localhost:3000, api.example.com)
security: []
tags: []
externalDocs:
  description: Authentication Docs
  url: auth/docs
paths:
  /api/integrations/{id}:
    patch:
      tags:
        - Integrations
      summary: Update an integration
      description: >-
        Updates the name, description, or config of an existing integration. If
        config is provided, it is validated against the JSON Schema. Empty body
        returns the current state unchanged.
      operationId: IntegrationsController_updateIntegration
      parameters:
        - name: id
          required: true
          in: path
          description: The id of the resource
          schema:
            type: string
        - name: X-Workspace-Id
          in: header
          description: Workspace ID
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateIntegrationDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetIntegrationDto'
                allOf:
                  - $ref: '#/components/schemas/AppResponseSerialization'
components:
  schemas:
    UpdateIntegrationDto:
      type: object
      properties:
        name:
          type: string
          description: Human-readable name
        description:
          type: string
          description: Optional description
        config:
          type: object
          description: App-specific configuration validated via JSON Schema
    GetIntegrationDto:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
        appType:
          type: string
        category:
          type: string
        config:
          type: object
          description: Configuration with sensitive fields masked
        workspaceId:
          type: string
        createdById:
          type: string
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
      required:
        - id
        - name
        - appType
        - category
        - config
        - workspaceId
        - createdById
        - createdAt
        - updatedAt

````