---
title: "Register Bulk Export Jobs"
method: POST
path: "/enhanced/bulk-export/register"
tags: ["Clients"]
---

# Register Bulk Export Jobs

`POST /enhanced/bulk-export/register`

## Request

- Base URL: `https://api.puppeteerai.com`
- URL: `https://api.puppeteerai.com/enhanced/bulk-export/register`
- Auth: none declared. Required headers: `Authorization`

Register existing ECW bulk export jobs in the database.

This endpoint creates an eligibility flow and EnhancedJob records for jobs
that were already created via ECW's API externally. It does not call ECW's API.

Args:
    input: Request body containing:
        - project_id: Project ID
        - patients_with_pcp_job_url: ECW job URL for patients-with-pcp group (required)
        - patients_no_pcp_job_url: ECW job URL for patients-no-pcp group (optional)
        - convertible_visits_enabled: enable convertible-visit detection (optional, default True)
        - operator_enabled: enable future-visit lookup and operator flow (optional, default False)
        - operator_automatic: auto-submit the operator prompt batch (optional, default False)
        - created_at: ISO 8601 reference date for the flow (optional, defaults to now); eligibility
          windows anchor on it and future visits are looked up for the following day
    Example with both jobs:
    {
        "project_id": "uuid-del-project",
        "patients_with_pcp_job_url": "https://fhir4.eclinicalworks.com/fhir/r4/...",
        "patients_no_pcp_job_url": "https://fhir4.eclinicalworks.com/fhir/r4/..."
    }
    Example with only patients-with-pcp:
    {
        "project_id": "uuid-del-project",
        "patients_with_pcp_job_url": "https://fhir4.eclinicalworks.com/fhir/r4/..."
    }
    authorization: API key for authentication.

Returns:
    dict: Dictionary with eligibility_flow_id and job IDs.

## Headers

- `Authorization` string, required

## Request body

- RegisterBulkExportJobsInput
  - `project_id` string, required
  - `patients_with_pcp_job_url` string, required
  - `patients_no_pcp_job_url` string, nullable
  - `convertible_visits_enabled` boolean
  - `operator_enabled` boolean
  - `operator_automatic` boolean
  - `created_at` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getpuppeteer/apis/puppeteer-core-api.md) - [All operations](https://skmtc.dev/getpuppeteer/apis/puppeteer-core-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getpuppeteer/apis/puppeteer-core-api/revisions/94b4e928b42f?raw)
