# Regenerate result files

Enqueue asynchronous regeneration of the summary CSV and detailed XLSX result
files for an existing bulk upload. This does not re-run checks — it only rebuilds
export files from already-stored row outcomes.
**Do not poll this endpoint.** Each POST enqueues a separate background job; there
is no idempotency or deduplication of in-flight regeneration work. Call once after
processing completes, then poll `GET /v1/bulk_uploads/{bulk_upload_id}` (and
download `result_file` / `detailed_result_file` when attached) for completion.

Endpoint: POST /bulk_uploads/{bulk_upload_id}/regenerate_results
Version: 1.0
Security: get-bearer-token-using-oauth2

## Security:

  - `get-bearer-token-using-oauth2` (unknown)
    oauth2

## Path parameters:

  - `bulk_upload_id` (string, required)
    the uuid identifying the bulk upload

## Response 202:

  - `202` (unknown)
    Regeneration job accepted (enqueued)

## Response 202 fields (application/json):

  - `message` (string, required)
    Example: Result file regeneration enqueued

## Response 401:

  - `401` (unknown)
    Error response

## Response 401 fields (application/json):

  - `code` (string, required)
    A machine-readable error code.
    Example: invalid_request

  - `title` (string, required)
    A human-readable error title.
    Example: Invalid Request

  - `source` (object)
    An object containing references to the source of the error.

  - `source.pointer` (string)
    A JSON Pointer [RFC6901] to the associated entity in the request document.
    Example: /data/attributes/first_name

## Response 404:

  - `404` (unknown)
    Error response

## Response 404 fields (application/json):

  - `code` (string, required)
    A machine-readable error code.
    Example: invalid_request

  - `title` (string, required)
    A human-readable error title.
    Example: Invalid Request

  - `source` (object)
    An object containing references to the source of the error.

  - `source.pointer` (string)
    A JSON Pointer [RFC6901] to the associated entity in the request document.
    Example: /data/attributes/first_name

## Response 500:

  - `500` (unknown)
    Error response

## Response 500 fields (application/json):

  - `code` (string, required)
    A machine-readable error code.
    Example: invalid_request

  - `title` (string, required)
    A human-readable error title.
    Example: Invalid Request

  - `source` (object)
    An object containing references to the source of the error.

  - `source.pointer` (string)
    A JSON Pointer [RFC6901] to the associated entity in the request document.
    Example: /data/attributes/first_name

