> ## 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 a funder's submission channel and email configuration

> Saves the funder's submission email address and CC list, and optionally switches its submission channel (integration or email). An omitted or null `channel` keeps the current channel, so email-field saves can never change how deals are routed. Returns the updated funder entry.




## OpenAPI

````yaml https://app.herondata.io/swagger patch /api/funder_integrations/{funder_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/funder_integrations/{funder_heron_id}/:
    patch:
      summary: Update a funder's submission channel and email configuration
      description: >
        Saves the funder's submission email address and CC list, and optionally
        switches its submission channel (integration or email). An omitted or
        null `channel` keeps the current channel, so email-field saves can never
        change how deals are routed. Returns the updated funder entry.
      parameters:
        - in: path
          name: funder_heron_id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateFunderIntegrationRequestSchema'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FunderIntegrationViewSchema'
          description: Funder updated
        '400':
          description: Invalid input (unsupported channel, malformed email)
        '404':
          description: Funder not linked to current broker
      security:
        - ApiKeyAuth: []
components:
  schemas:
    UpdateFunderIntegrationRequestSchema:
      properties:
        channel:
          enum:
            - integration
            - email
            - null
          nullable: true
        submission_cc_email_addresses:
          items:
            type: string
          nullable: true
          type: array
        submission_email_address:
          nullable: true
          type: string
      type: object
    FunderIntegrationViewSchema:
      properties:
        channel:
          enum:
            - integration
            - email
            - null
          nullable: true
        channel_type:
          nullable: true
          type: string
        config:
          allOf:
            - $ref: '#/components/schemas/FunderIntegrationConfig'
          nullable: true
        effective_submission_email_address:
          nullable: true
          type: string
        funder_email_domains:
          items:
            type: string
          type: array
        funder_heron_id:
          type: string
        funder_logo_url:
          nullable: true
          type: string
        funder_name:
          type: string
        production:
          allOf:
            - $ref: '#/components/schemas/IntegrationEnvironment'
          nullable: true
        sender_address:
          type: string
        slug:
          nullable: true
          type: string
        staging:
          allOf:
            - $ref: '#/components/schemas/IntegrationEnvironment'
          nullable: true
        state:
          enum:
            - not_available
            - not_configured
            - staging_configured
            - staging_live
            - production_configured
            - production_live
            - live
        submission_cc_email_addresses:
          items:
            type: string
          nullable: true
          type: array
        submission_email_address:
          nullable: true
          type: string
        supports_staging:
          type: boolean
      required:
        - funder_email_domains
        - funder_heron_id
        - funder_name
        - sender_address
        - state
        - supports_staging
      type: object
    FunderIntegrationConfig:
      properties:
        channel_type:
          type: string
        display_name:
          type: string
        form_fields:
          items:
            $ref: '#/components/schemas/FormField'
          type: array
        supports_staging:
          type: boolean
      required:
        - channel_type
        - display_name
        - form_fields
        - supports_staging
      type: object
    IntegrationEnvironment:
      properties:
        has_credentials:
          type: boolean
        last_test_attempted_at:
          format: date-time
          nullable: true
          type: string
        last_test_deal_id:
          nullable: true
          type: string
        last_test_status:
          enum:
            - not_run
            - in_progress
            - succeeded
            - failed
        last_test_status_message:
          nullable: true
          type: string
      required:
        - has_credentials
        - last_test_status
      type: object
    FormField:
      properties:
        field_type:
          enum:
            - text
            - password
        label:
          type: string
        name:
          type: string
        required:
          type: boolean
      required:
        - field_type
        - label
        - name
        - required
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````