Batch Processing API
Endpoints for batch processing operations.
Endpoints
- POST /api/batch/process
- GET /api/batch/status/batch_id"}
- POST /api/batch/upload
- DELETE /api/batch/batch/batch_id"}
- GET /api/batch/batches
POST /api/batch/process
Process Batch Questionnaires
Process a batch of league questionnaires from Google Drive or uploaded files.
Supports up to 10 questionnaires per batch. Processing can be done synchronously or asynchronously in the background.
Request Body
{}Responses
200: Successful Response
422: Validation Error
Examples
curl -X POST "https://api.altsportsdata.com/api/batch/process" \
-H "Content-Type: application/json" \
-d '{}'GET /api/batch/status/{batch_id}"}
Get Batch Status
Get the status of a batch processing job.
Returns current progress, results for completed files, and any errors encountered.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
batch_id | path | string | Yes | - |
Responses
200: Successful Response
422: Validation Error
Examples
curl -X GET "https://api.altsportsdata.com/api/batch/status/{batch_id}"}" \
-H "Content-Type: application/json"POST /api/batch/upload
Upload Questionnaires
Upload multiple questionnaire files for processing.
Accepts up to 10 PDF or DOCX files. Files are saved to the server for processing.
Request Body
{}Responses
200: Successful Response
422: Validation Error
Examples
curl -X POST "https://api.altsportsdata.com/api/batch/upload" \
-H "Content-Type: application/json" \
-d '{}'DELETE /api/batch/batch/{batch_id}"}
Delete Batch
Delete a batch processing job and clean up associated files.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
batch_id | path | string | Yes | - |
Responses
200: Successful Response
422: Validation Error
Examples
curl -X DELETE "https://api.altsportsdata.com/api/batch/batch/{batch_id}"}" \
-H "Content-Type: application/json"