post:
  operationId: makeDecision
  tags:
    - Certifications
  summary: Decide on a Certification Item
  description: >-
    The API makes a decision to approve or revoke a certification item. A token with ORG_ADMIN or CERT_ADMIN authority
    is required to call this API. Reviewers for this certification can also call this API.
  parameters:
    - in: path
      name: id
      schema:
        type: string
      required: true
      description: The ID of the certification on which to make a decision
      example: ef38f94347e94562b5bb8424a56396b5
  requestBody:
    required: true
    description: An array of decisions to be made.
    content:
      application/json:
        schema:
          type: array
          items:
            $ref: '../../v3/schemas/ReviewDecision.yaml'
          maxItems: 250
        example:
          - id: ef38f94347e94562b5bb8424a56396b5
            decision: APPROVE
            bulk: true
            recommendation: null
            comments: This user still needs access to this source.
          - id: ef38f94347e94562b5bb8424a56397d8
            decision: APPROVE
            bulk: true
            recommendation: null
            comments: This user still needs access to this source too.
  responses:
    '200':
      description: A certification object
      content:
        application/json:
          schema:
            $ref: '../../beta/schemas/CertificationDto.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'
