post:
  operationId: completeCampaign
  tags:
    - Certification Campaigns
  summary: Complete a Campaign
  description: >-
    Completes a certification campaign only if it is past the due date. This is provided to admins so that they
    can complete a certification even if all items have not been completed.

    Requires roles of CERT_ADMIN and ORG_ADMIN
  # security:
  #   - oauth2: [CERT_ADMIN,ORG_ADMIN]
  requestBody:
    description:
      Optional. Default behavior is for the campaign to auto-approve upon completion,
      unless autoCompleteAction=REVOKE
    required: false
    content:
      application/json:
        schema:
          $ref: '../schemas/CompleteCampaignOptions.yaml'
  parameters:
    - in: path
      name: id
      schema:
        type: string
      required: true
      description: The campaign id
      example: ef38f94347e94562b5bb8424a56397d8
  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'
