get:
  operationId: spConfigImportDownload
  # security:
  #   - oauth2: [sp:config:import]
  tags:
    - SP-Config
  summary: Download Result of Import Job
  description: >-
    This gets import file resulting from the import job with the requested id and downloads it to a file.
    The downloaded file will contain the results of the import operation, including any error, warning or informational
    messages associated with the import.

    Request will need the following security scope:

    'sp:config:import'
  parameters:
    - in: path
      name: id
      schema:
        type: string
      required: true
      description: The ID of the import job for which the results will be downloaded.
      example: ef38f94347e94562b5bb8424a56397d8
  responses:
    '200':
      description: >-
        Import Results JSON object, containing detailed results of the import operation.
      content:
        application/json:
          schema:
            $ref: '../../beta/schemas/SpConfigImportResults.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'
