Activar o desactivar una tarea.
curl -X POST "https://app.horneross.com/api/tasks/trigger_abc123/toggle" \ -H "Authorization: Bearer sk_live_xxx" \ -H "Content-Type: application/json" \ -d '{"enabled": false}'
{ "trigger": { "id": "trigger_abc123", "agentId": "agent_xyz", "type": "schedule", "name": "Resumen diario", "config": { "prompt": "...", "cronExpression": "0 9 * * *" }, "isEnabled": false, "createdAt": "2024-01-21T10:00:00Z" } }
POST /api/tasks/{id}/toggle
Bearer sk_live_xxx
application/json
true
false
Show Propiedades
integration_event
Was this page helpful?