Cluster Triggers
Create Cluster Trigger
Changed onCreate a new trigger for automated cluster execution.
Supports multiple trigger types:
- **cron**: Execute at specific times using cron expressions
- **interval**: Execute at fixed intervals
- **event**: Execute when specific events occur (e.g., documents added)
- **conditional**: Execute when conditions are met (e.g., drift threshold)
post/v1/clusters/triggers
Request
- Base URL: https://api.mixpeek.com
- URL: https://api.mixpeek.com/v1/clusters/triggers
- Auth: HTTP bearer and API key in header X-Namespace
Request body
Example request
{
"description": "Daily clustering at 2am UTC",
"execution_config": {
"collection_ids": [
"col_abc123"
],
"config": {
"algorithm": "kmeans",
"min_cluster_size": 2,
"n_clusters": 5
}
},
"schedule_config": {
"cron_expression": "0 2 * * *",
"timezone": "UTC"
},
"trigger_type": "cron"
}Response
Successful Response
Example response
{
"execution_config": {
"collection_ids": [
"col_abc123"
],
"config": {
"algorithm": "kmeans",
"min_cluster_size": 2,
"n_clusters": 5
}
}
}Changes
- warning
removed the optional property
from the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- warning
- breaking
removed the success response with the status
- info
added the success response with the status
- breaking