v5
latestOpenAPI 3.1.02026-08-025631,1012.8 MBTriggers
Create Trigger
Create a new trigger for scheduled job execution.
**Action Types:**
- `cluster`: Execute clustering on a cluster definition
- `taxonomy_enrichment`: Apply taxonomy enrichment to a collection
**Schedule Types:**
- `cron`: Execute at specific times using cron expressions (e.g., "0 2 * * *" for daily at 2am)
- `interval`: Execute at fixed intervals (e.g., every 6 hours)
- `event`: Execute when specific events occur (e.g., after 100 documents added)
- `conditional`: Execute when conditions are met (e.g., drift threshold exceeded)
**Examples:**
Cluster trigger (daily at 2am):
```json
{
"action_type": "cluster",
"action_config": {"cluster_id": "clust_abc123"},
"trigger_type": "cron",
"schedule_config": {"cron_expression": "0 2 * * *", "timezone": "UTC"},
"description": "Daily clustering at 2am"
}
```
Taxonomy enrichment trigger (every 6 hours):
```json
{
"action_type": "taxonomy_enrichment",
"action_config": {
"taxonomy_id": "tax_products",
"collection_id": "col_inventory",
"batch_size": 1000
},
"trigger_type": "interval",
"schedule_config": {"interval_seconds": 21600},
"description": "Re-enrich products every 6 hours"
}
```
post/v1/triggers
Request body
Example request
{
"action_config": {
"cluster_id": "clust_abc123"
},
"action_type": "cluster",
"description": "Daily clustering at 2am",
"schedule_config": {
"cron_expression": "0 2 * * *",
"timezone": "UTC"
},
"trigger_type": "cron"
}Response
Successful Response