{
"data": {
"id": "schedule_123",
"name": "Daily Health Check",
"cronExpression": "0 9 * * *",
"timezone": "America/New_York",
"endpoint": "https://api.example.com/health",
"httpMethod": "GET",
"isEnabled": true,
"nextRunAtUtc": "2024-01-15T14:00:00.000Z",
"createdAt": "2024-01-01T12:00:00.000Z",
"updatedAt": "2024-01-14T14:00:00.000Z",
"maxRetries": 3,
"timeoutSeconds": 30,
"description": "Check API health every day at 9 AM",
"body": "{\"key\": \"value\"}",
"headers": "{\"User-Agent\": \"Cronhost-Monitor\", \"Content-Type\": \"application/json\"}",
"lastRunAtUtc": "2024-01-14T14:00:00.000Z"
},
"success": true,
"message": "Schedule enabled successfully"
}Enable or disable a schedule without deleting it. Disabled schedules will not execute until re-enabled.
{
"data": {
"id": "schedule_123",
"name": "Daily Health Check",
"cronExpression": "0 9 * * *",
"timezone": "America/New_York",
"endpoint": "https://api.example.com/health",
"httpMethod": "GET",
"isEnabled": true,
"nextRunAtUtc": "2024-01-15T14:00:00.000Z",
"createdAt": "2024-01-01T12:00:00.000Z",
"updatedAt": "2024-01-14T14:00:00.000Z",
"maxRetries": 3,
"timeoutSeconds": 30,
"description": "Check API health every day at 9 AM",
"body": "{\"key\": \"value\"}",
"headers": "{\"User-Agent\": \"Cronhost-Monitor\", \"Content-Type\": \"application/json\"}",
"lastRunAtUtc": "2024-01-14T14:00:00.000Z"
},
"success": true,
"message": "Schedule enabled successfully"
}API key for authentication. Get your API key from the Cronhost dashboard.
Unique schedule identifier
"schedule_123"
Whether to enable (true) or disable (false) the schedule