workflows API
Endpoints for workflows operations.
Endpoints
- POST /workflows/schedule
- GET /workflows/schedule/workflow_id"}
- DELETE /workflows/schedule/workflow_id"}
- GET /workflows/schedules
- POST /workflows/run
- GET /workflows/history
- GET /workflows/stats
POST /workflows/schedule
Schedule Workflow
Schedule or update a workflow
Request Body
{}Responses
200: Successful Response
422: Validation Error
Examples
curl -X POST "https://api.altsportsdata.com/workflows/schedule" \
-H "Content-Type: application/json" \
-d '{}'GET /workflows/schedule/{workflow_id}"}
Get Workflow Schedule
Get workflow schedule configuration
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workflow_id | path | string | Yes | - |
Responses
200: Successful Response
422: Validation Error
Examples
curl -X GET "https://api.altsportsdata.com/workflows/schedule/{workflow_id}"}" \
-H "Content-Type: application/json"DELETE /workflows/schedule/{workflow_id}"}
Delete Workflow Schedule
Delete a workflow schedule
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workflow_id | path | string | Yes | - |
Responses
200: Successful Response
422: Validation Error
Examples
curl -X DELETE "https://api.altsportsdata.com/workflows/schedule/{workflow_id}"}" \
-H "Content-Type: application/json"GET /workflows/schedules
List Workflow Schedules
List all workflow schedules
Responses
200: Successful Response
Examples
curl -X GET "https://api.altsportsdata.com/workflows/schedules" \
-H "Content-Type: application/json"POST /workflows/run
Run Workflow
Execute a workflow immediately
Request Body
{}Responses
200: Successful Response
422: Validation Error
Examples
curl -X POST "https://api.altsportsdata.com/workflows/run" \
-H "Content-Type: application/json" \
-d '{}'GET /workflows/history
Get Workflow History
Get workflow execution history
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workflow_id | query | string | No | - |
limit | query | integer | No | - |
status | query | string | No | - |
Responses
200: Successful Response
422: Validation Error
Examples
curl -X GET "https://api.altsportsdata.com/workflows/history" \
-H "Content-Type: application/json"