post:
  operationId: runCampaignReport
  tags:
    - Certification Campaigns
  summary: Run Campaign Report
  description: >- 
    Runs a report for a certification campaign.

    Requires the following roles: CERT_ADMIN, DASHBOARD, ORG_ADMIN and REPORT_ADMIN.

  # security:
  #   - oauth2: [CERT_ADMIN,DASHBOARD,ORG_ADMIN,REPORT_ADMIN]
  parameters:
    - in: path
      name: id
      schema:
        type: string
        example: 2c91808571bcfcf80171c23e4b4221fc
      required: true
      description: The ID of the campaign for which report is being run.
    - in: path
      name: type
      schema:
        $ref: '../schemas/ReportType.yaml'
      required: true
      description: The type of the report to run.
  responses:
    '202':
      $ref: '../../v3/responses/202.yaml'
    '400':
      $ref: '../../v3/responses/400.yaml'
    '401':
      $ref: '../../v3/responses/401.yaml'
    '403':
      $ref: '../../v3/responses/403.yaml'
    '404':
      $ref: '../../v3/responses/404.yaml'
    '429':
      $ref: '../../v3/responses/429.yaml'
    '500':
      $ref: '../../v3/responses/500.yaml'
