Triggers
Triggers enable you to run automations in four different ways. You can assign as many triggers as you like to an automation and have more than one of each type.
Trigger types
Workflows initiated by triggers will mention Operations Manager in the job description.

Create and edit triggers
Open the Create Trigger panel
Click the Create Trigger button (+) in the Triggers toolbar on the Automation Details page. The Create Trigger panel appears on the left.
You can edit existing triggers from the trigger card by clicking the trigger name at the top of a card.
Manual triggers
Manual triggers run the related automation only when invoked by you. A JSON Form may optionally be assigned to the trigger to provide runtime data to the underlying workflow.

Run automations from manual triggers

API endpoint triggers
API endpoint triggers run the automation whenever the configured endpoint receives an HTTP POST request. When a request is received:
- The body of the
HTTP POSTrequest (represented as a JSON object) is validated against the POST body schema defined in the trigger. - If the body is validated, it is sent to an optional JST defined in the trigger.
- After the JST is applied (if relevant), the keys and values of the request body are made available to the workflow and the automation runs.
- The endpoint responds to the client with information about the workflow that was started.
To use keys and values from the body of the HTTP POST request in a workflow, you must reference them as job variables within the workflow itself.
Each API trigger requires a unique route name. Endpoint trigger URLs use the following format:

POST body schema
The POST body schema is a JSON schema against which the body of the HTTP POST request is validated. If the request body is validated, the API trigger continues its preparations to run the automation. If the request body is not validated, the automation is not run.
The POST body schema uses the following syntax:
Example: Velocloud Edge Provisioning automation
The following example shows how to trigger a Velocloud Edge Provisioning automation using an API endpoint trigger.
Create the API endpoint trigger
Endpoint — Use the following endpoint to trigger the automation:
Authentication — Itential Platform uses a token for API calls, passed to the endpoint via the token query parameter. In on-premises environments, retrieve this token by calling the login endpoint. See the API documentation for reference. For SaaS customers with Itential Cloud environments, the token is provided by the Product Support Team.
Payload body — The values in the payload body are used by the automation for edge provisioning in Velocloud:
Postman call — An example of the API call in Postman:

Check automation status
To check the status of the automation (job), make a separate call to Itential Platform. When triggering automations via API, Itential Platform returns a 200 status code if the automation started successfully.
GET call — Use the following URL to check job status:

Response body — The job_id value can be found in the response body of the POST call (_id). The following example shows the response and where to find the job_id:

Response status — The response from the GET job status call should look like the following. The "status" field indicates whether the job is still running or complete:
HTTP verbs
Operations Manager API triggers are intended to start an automation job. For this reason, the only HTTP verb supported is POST. HTTP verbs denote the impact a request has on the target resource. Supporting other HTTP verbs, such as DELETE, would imply that an API trigger is being deleted rather than that the trigger is starting an automation whose purpose is to delete configuration from an external service or device.
Additional resource
For more information about API triggers, watch the Itential Learn video below.
Schedule triggers
Schedule triggers run the automation at some point in the future at an optional repeating frequency.
The Start time selected in the Create Trigger panel and shown in the trigger card after saving is based on your current time and date.

Event triggers
Event triggers run the automation whenever the configured event occurs. When an event occurs in Itential Platform:
- The event system publishes an event object representing that event as a JSON object.
- The
payloadkey of the event object is validated against the payload schema filter defined in the event trigger. - If the
payloadpasses validation, it is extracted from the event object and sent to an optional JST defined in the event trigger. - After the JST is applied (if relevant), the
payloadis made available to the workflow and the automation runs.
To use keys and values from the payload in a workflow, you must reference them as job variables within the workflow itself.
For more information, see Event system.

Payload schema filter
The payload schema filter is a JSON schema against which the payload key of an event object is validated. If the payload is validated, the event trigger continues its preparations to run the automation. If the payload is not validated, the automation is not run.
The payload schema filter uses the following syntax:
It is possible to create an infinite job execution loop if an automation can activate its own event trigger. This is especially applicable when using the following events in an event trigger:
jobStartjobCanceljobError
When using an event trigger, ensure the workflow executed by the automation cannot generate an event that will activate that same event trigger.
Trigger cards
You can manage triggers for an automation through a collection of trigger cards on the Automation Details page. Each trigger is represented by a card.

Trigger card actions
From a trigger card, you can:
- View information about a trigger (name, type, and description).
- Create a trigger.
- Enable or disable a trigger.
- Run, edit, or delete a trigger.
To enable or disable a trigger, click the toggle switch at the top-right corner of the trigger card:
- When the toggle switch is blue with a check mark (✓), the trigger is enabled.
- When the toggle switch is gray with an X, the trigger is disabled. A disabled trigger will not run its automation.
To run or delete a trigger, click the Run or Delete button at the bottom-right corner of the trigger card.
Triggers can also be deleted in bulk. Check the select box at the bottom-left corner of each trigger you want to delete, then click Delete in the Triggers Toolbar.