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

# Generate report for a manual selection of projects

> Generates a consolidated OWASP Top 10 or CWE Top 25 report for a custom list of projects



## OpenAPI

````yaml post /organization/{organizationId}/project/report/batch/{reportType}/{format}
openapi: 3.0.0
info:
  title: Cybedefend API
  description: >-
    CybeDefend is an advanced API for application security analysis. Key
    features include OAuth 2.0 authentication, user/organization/project
    management, and REBAC-based permissions. It excels in static, dynamic, and
    IaC security analyses (SAST, DAST, IaC, etc.).
  version: '1.0'
  contact: {}
servers:
  - url: https://api-eu.cybedefend.com
    description: EU
  - url: https://api-us.cybedefend.com
    description: US
security: []
tags: []
paths:
  /organization/{organizationId}/project/report/batch/{reportType}/{format}:
    post:
      tags:
        - Results & Vulnerabilities
      summary: Generate report for a manual selection of projects
      description: >-
        Generates a consolidated OWASP Top 10 or CWE Top 25 report for a custom
        list of projects
      operationId: ResultController_generateBatchReport
      parameters:
        - name: organizationId
          required: true
          in: path
          schema:
            type: string
        - name: reportType
          required: true
          in: path
          description: Type of report to generate
          schema:
            enum:
              - owasp
              - cwe
            type: string
        - name: format
          required: true
          in: path
          description: Output format
          schema:
            enum:
              - json
              - html
              - pdf
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateBatchReportBodyDto'
      responses:
        '200':
          description: Batch report generated successfully
        '400':
          description: Bad Request - Invalid parameters or empty project list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDto'
        '403':
          description: Forbidden - User does not have access to one or more projects
          content:
            application/json:
              schema:
                example:
                  message: Forbidden
                  statusCode: 403
                  timestamp: '2025-02-18T12:31:18.491Z'
                  path: /example/path
components:
  schemas:
    GenerateBatchReportBodyDto:
      type: object
      properties:
        projectIds:
          description: List of project IDs to include in the report
          example:
            - 550e8400-e29b-41d4-a716-446655440000
            - 6ba7b810-9dad-11d1-80b4-00c04fd430c8
          type: array
          items:
            type: string
        detailed:
          type: boolean
          description: Generate detailed report with full vulnerability descriptions
          example: true
          default: true
      required:
        - projectIds
    ErrorDto:
      type: object
      properties:
        timestamp:
          type: string
          example: '2025-02-18T12:31:18.491Z'
          description: Timestamp of the error
        service:
          type: string
          example: AiService
          description: Name of the service where the error occurred
        method:
          type: string
          example: startConversation
          description: Method name where the error occurred
        message:
          type: string
          example: Invalid parameters provided
          description: Error message
        code:
          type: number
          example: 400
          description: HTTP status code
          minimum: 100
          maximum: 599
      required:
        - timestamp
        - service
        - method
        - message
        - code

````