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

# Update Integration

> Update an Integration. The response masks `client_id` and `client_secret`: `****` plus its last four characters when it is at least 16 characters long, otherwise `****`. Sending a masked value back leaves the stored value unchanged; send a new value to replace it.




## OpenAPI

````yaml https://app.herondata.io/swagger put /api/integrations/{heron_id}
openapi: 3.0.0
info:
  contact:
    email: support@herondata.io
    name: Support
  title: Heron Data API
  version: '2021-07-19'
servers:
  - description: Production
    url: https://app.herondata.io
security:
  - ApiKeyAuth:
      - key_XXX
externalDocs:
  description: Read Tutorial
  url: https://docs.herondata.io/
paths:
  /api/integrations/{heron_id}:
    put:
      tags:
        - Integrations
      summary: Update Integration
      description: >
        Update an Integration. The response masks `client_id` and
        `client_secret`: `****` plus its last four characters when it is at
        least 16 characters long, otherwise `****`. Sending a masked value back
        leaves the stored value unchanged; send a new value to replace it.
      parameters:
        - in: path
          name: heron_id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                integration:
                  properties:
                    base_url:
                      format: url
                      nullable: true
                      type: string
                    client_auth:
                      additionalProperties: true
                      type: object
                    client_id:
                      nullable: true
                      type: string
                    client_secret:
                      nullable: true
                      type: string
                    name:
                      type: string
                    resource:
                      enum:
                        - transaction
                        - assets_report
                        - end_user_application
                        - invoice_factoring_processing
                        - end_user_files
                        - funder_decision
                      type: string
                    type:
                      type: string
                    webhook_url:
                      format: url
                      nullable: true
                      type: string
                  type: object
              type: object
        description: Integration fields to change; omitted fields are left as they are
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  integration:
                    $ref: '#/components/schemas/IntegrationSchema'
                type: object
          description: OK
        '400':
          description: A change of type
        '404':
          description: Integration not found
        '422':
          description: Invalid fields
      security:
        - ApiKeyAuth: []
components:
  schemas:
    IntegrationSchema:
      properties:
        base_url:
          description: >-
            Base URL of the API integration. For Google Drive, use root_dir_path
            in client_auth instead.
          example: https://sandbox.plaid.com
          format: url
          nullable: true
          type: string
        client_auth:
          additionalProperties: {}
          description: >-
            Client-specific authentication settings depending on the integration
            type
          type: object
          writeOnly: true
        client_id:
          description: >-
            Client ID for API access (this is encrypted in transit and at-rest
            with a custom key). Required for Plaid integration. Returned in full
            only in the create response; every later read returns it masked:
            `****` plus its last four characters when it is at least 16
            characters long, otherwise `****`.
          nullable: true
          type: string
        client_secret:
          description: >-
            Client Secret for API access (this is encrypted in transit and
            at-rest with a custom key). Required for Plaid integration. Returned
            in full only in the create response; every later read returns it
            masked: `****` plus its last four characters when it is at least 16
            characters long, otherwise `****`.
          nullable: true
          type: string
        heron_id:
          readOnly: true
          type: string
        name:
          description: A name for your integration
          example: Plaid Prod
          type: string
        resource:
          description: >-
            For integrations with multiple available resources, the specific
            resource
          enum:
            - transaction
            - assets_report
            - end_user_application
            - invoice_factoring_processing
            - end_user_files
            - funder_decision
          type: string
        type:
          description: The integration type, a specific provider
          type: string
        webhook_url:
          description: URL provided by you to which we'll forward all webhooks (optional)
          example: https://your-server.yourdomain.com/hooks
          format: url
          nullable: true
          type: string
      required:
        - name
        - resource
        - type
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.