create_automation
Create an automation.
Request
POST /api/v1/ops/projects/{project}/automationsParameter
In
Type
Required
Description
curl -X POST -H "Authorization: Bearer $TESTVIBE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Nightly smoke suite",
"trigger": { "type": "schedule", "cron": "0 8 * * *", "tz": "America/New_York" },
"action": { "type": "run_features", "featureIds": [12, 15] }
}' \
"$TESTVIBE_SERVER/api/v1/ops/projects/$PROJECT/automations"testvibe automations create \
--name "Nightly smoke suite" \
--trigger schedule --cron "0 8 * * *" --tz America/New_York \
--action run_features --features 12,15
# event trigger that runs the suite only when a run fails
testvibe automations create \
--name "Re-run on failure" \
--trigger event --onStatus failed \
--action run_featuresResponse
Errors
HTTP
When
Last updated
Was this helpful?
