API Reference
Batch Processing

Batch Processing API

Endpoints for batch processing operations.

Endpoints

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

NameInTypeRequiredDescription
batch_idpathstringYes-

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

NameInTypeRequiredDescription
batch_idpathstringYes-

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"

GET /api/batch/batches

List Batches

List all active and recent batch processing jobs.

Responses

200: Successful Response

Examples

curl -X GET "https://api.altsportsdata.com/api/batch/batches" \
  -H "Content-Type: application/json"

Platform

Documentation

Community

Support

partnership@altsportsdata.comdev@altsportsleagues.ai

2025 Β© AltSportsLeagues.ai. Powered by AI-driven sports business intelligence.

πŸ€– AI-Enhancedβ€’πŸ“Š Data-Drivenβ€’βš‘ Real-Time