> ## 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.

# Trigger a staging or production test submission for this funder

> Submits the synthetic test end user to the selected funder environment. Returns the funder submission Heron ID. Frontend polls `/funder_submissions/{id}/` for the result.




## OpenAPI

````yaml https://app.herondata.io/swagger post /api/funder_integrations/{funder_heron_id}/test/
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}/test/:
    post:
      summary: Trigger a staging or production test submission for this funder
      description: >
        Submits the synthetic test end user to the selected funder environment.
        Returns the funder submission Heron ID. Frontend polls
        `/funder_submissions/{id}/` for the result.
      parameters:
        - in: path
          name: funder_heron_id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TriggerTestRequestSchema'
        required: false
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TriggerTestResponseSchema'
          description: Test triggered
        '400':
          description: Credentials not configured
        '404':
          description: Funder not linked to current broker
        '409':
          description: A test is already in progress for this funder
      security:
        - ApiKeyAuth: []
components:
  schemas:
    TriggerTestRequestSchema:
      properties:
        environment:
          default: staging
          enum:
            - staging
            - production
      type: object
    TriggerTestResponseSchema:
      properties:
        funder_submission_heron_id:
          type: string
      required:
        - funder_submission_heron_id
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````