APIAutomations
Enable an automation
Enable an automation so it runs on its schedule.
Path Parameters
automationId*string
Automation ID.
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/automations/497f6eca-6276-4993-bfeb-53cbbbba6f08/enable" \ -H "Content-Type: application/json" \ -d '{}'{ "automation": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8", "name": "string", "kind": "script", "scriptId": "f0627ad0-1039-49a9-8db1-75a1523ed451", "scriptName": "string", "signalDefinitionId": "d7125c3e-7ab8-463b-aa4e-53fd9aaeb380", "signalType": "expression_matched", "source": "sazabi_managed", "enabled": true, "cronExpression": "string", "timezone": "string", "timeoutSeconds": -9007199254740991, "health": "healthy", "lastRun": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "automationRunKey": "string", "status": "running", "startedAt": "2019-08-24T14:15:22Z", "completedAt": "2019-08-24T14:15:22Z", "durationMs": -9007199254740991, "exitCode": -9007199254740991 }, "successRate": 0, "runCount": -9007199254740991, "failedRunCount": -9007199254740991, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "recordedHistoryStartsAt": "2019-08-24T14:15:22Z", "scriptIdentifier": "string", "canToggle": true }}