Create Batch Job
POST/api/v1/beta/batch-processing
Create a new batch processing job for a directory.
This endpoint creates a batch job that will process all files in the specified directory using a Temporal workflow. The job configuration determines what processing will be performed.
Args: payload: Job configuration including directory_id, job_config, and workflow settings user: Authenticated user making the request db: Database session
Returns: BatchJobResponse with job details and workflow ID
Raises: HTTPException: If directory not found or user lacks permissions
Example Request Body:
\{
"directory_id": "dir_123",
"job_config": \{
"job_name": "PARSE_RAW_FILE",
"parameters": \{
"type": "PARSE",
"parsing_instruction": "Extract all tables"
\}
\},
"page_size": 100,
"continue_as_new_threshold": 1000
\}
Request
Responses
- 201
- 422
Successful Response
Validation Error