curl --request PATCH \
--url https://api.coval.dev/v1/scheduled-runs/{scheduled_run_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"enabled": false
}
'{
"scheduled_run": {
"name": "scheduled-runs/xyz789uvw456rst123abcd",
"created_at": "2025-10-14T12:00:00Z",
"created_by": "01J000000000000000000000001",
"updated_at": "2025-10-15T15:00:00Z",
"updated_by": "01J000000000000000000000002",
"id": "xyz789uvw456rst123abcd",
"display_name": "Hourly Health Check",
"run_template_id": "abc123def456ghi789jklm",
"schedule_expression": "rate(1 hour)",
"schedule_timezone": "UTC",
"enabled": true,
"last_run_at": "2025-10-15T14:15:00Z",
"last_run_id": "8EktrIgaVxn9LfxkIynagX",
"create_time": "2025-10-14T12:00:00Z",
"update_time": "2025-10-15T15:00:00Z"
}
}Scheduled Runs
Update scheduled run
Update specific fields of an existing scheduled run.
Common use cases:
- Enable/disable a schedule:
{"enabled": false} - Change the schedule frequency:
{"schedule_expression": "rate(1 hour)"} - Update the run template:
{"run_template_id": "new_template_id"}
PATCH
/
scheduled-runs
/
{scheduled_run_id}
curl --request PATCH \
--url https://api.coval.dev/v1/scheduled-runs/{scheduled_run_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"enabled": false
}
'{
"scheduled_run": {
"name": "scheduled-runs/xyz789uvw456rst123abcd",
"created_at": "2025-10-14T12:00:00Z",
"created_by": "01J000000000000000000000001",
"updated_at": "2025-10-15T15:00:00Z",
"updated_by": "01J000000000000000000000002",
"id": "xyz789uvw456rst123abcd",
"display_name": "Hourly Health Check",
"run_template_id": "abc123def456ghi789jklm",
"schedule_expression": "rate(1 hour)",
"schedule_timezone": "UTC",
"enabled": true,
"last_run_at": "2025-10-15T14:15:00Z",
"last_run_id": "8EktrIgaVxn9LfxkIynagX",
"create_time": "2025-10-14T12:00:00Z",
"update_time": "2025-10-15T15:00:00Z"
}
}Headers
Body
application/json
Partial update request (PATCH semantics - only provided fields are updated)
Was this page helpful?