# Generate report from workbench variants

Generates and publishes reports for one or more analyses using the
variants currently in their workbenches.
This is a convenience endpoint that performs the following operations
for each analysis:
1. Fetches all variants from the analysis workbench
2. Sets clinical significance for variants (Causal Variants or Secondary Findings)
3. Generates interpretation blurbs for variants without interpretations
4. Adds variants to the report
5. Publishes the report

**Use Case:** This endpoint is ideal for automated pipelines that want
to generate reports based on the curated workbench variants without
manual intervention.
**Note:** Multiple analysis IDs can be provided to generate reports
in batch. Each analysis is processed independently, and failures in
one analysis do not affect others.

Endpoint: POST /v1/analysis/workbench/generate_report
Version: 96
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer JWT

## Request fields (application/json):

  - `analysis_ids` (array, required)
    List of analysis IDs to generate reports for
    Example: ["12345","12346","12347"]

## Response 200:

  - `200` (unknown)
    Reports generated (check individual results for errors)

## Response 200 fields (application/json):

  - `reports` (object)
    Map of analysis ID to generation result
    Example: {"12345":{"report_id":"67890","error":null},"12346":{"report_id":null,"error":"Failed to generate report"}}

## Response 400:

  - `400` (unknown)
    Bad request - invalid analysis IDs

## Response 400 fields (application/json):

  - `error` (string, required)
    Error type
    Example: Not Found

  - `message` (string, required)
    Human-readable error description
    Example: Analysis with ID 12345 was not found

## Response 401:

  - `401` (unknown)
    Authentication failed - invalid or missing token

## Response 401 fields (application/json):

  - `error` (string, required)
    Error type
    Example: Not Found

  - `message` (string, required)
    Human-readable error description
    Example: Analysis with ID 12345 was not found

## Response 429:

  - `429` (unknown)
    Rate limit exceeded

## Response 429 fields (application/json):

  - `error` (string, required)
    Error type
    Example: Not Found

  - `message` (string, required)
    Human-readable error description
    Example: Analysis with ID 12345 was not found

## Response 429 headers (application/json):

  - `Retry-After` (integer)
    Number of seconds to wait before retrying

