For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Open sourceSupportFAQsDocs Home
DocumentationAPI referenceRelease notes
DocumentationAPI referenceRelease notes
  • Introduction
    • Overview
    • Authentication
  • Guides
    • Operations Manager search APIs
    • Search API
    • URL query parameters
    • Use query parameters in API requests
  • Reference
        • POSTAdd GBAC to a job
        • POSTAdd watchers to a job
        • POSTAssign a task to a user
        • POSTBulk delete root jobs
        • POSTCancel jobs
        • POSTClaim a task
        • POSTClone automation
        • POSTContinue a job from a specified task
        • POSTCreate automation
        • POSTCreate trigger
        • DELDelete a root job and all related items
        • DELDelete automation
        • POSTDelete root jobs and related items
        • DELDelete trigger
        • DELDelete triggers by action ID
        • GETExport automation
        • GETExport large data for a job or task variable
        • GETExport trigger
        • POSTFinish a manual task
        • GETGet a job
        • GETGet a task by ID
        • GETGet automation
        • GETGet automations
        • GETGet event definition
        • GETGet jobs
        • GETGet manual task controller
        • GETGet tasks
        • GETGet trigger
        • GETGet triggers
        • PUTImport automations
        • PUTImport triggers
        • POSTPauses jobs
        • POSTRelease a currently assigned task
        • DELRemove all GBAC from a job
        • DELRemove GBAC from a job
        • PUTReplace all GBAC from a job with the provided list
        • POSTResume jobs
        • POSTRetry a task
        • POSTRevert a job
        • POSTRun endpoint trigger with POST
        • POSTRun manual trigger
        • GETSearch system events
        • POSTStart a job
        • POSTUnwatch job
        • POSTUnwatch jobs
        • PATCHUpdate automation
        • PATCHUpdate trigger
        • POSTValidate automation
        • POSTValidate trigger
        • POSTWatch a job
        • POSTWatch jobs
LogoLogo
Open sourceSupportFAQsDocs Home
ReferenceOperations Manager

Create trigger

POST
http://localhost:3000/operations-manager/triggers
POST
/operations-manager/triggers
$curl -X POST http://localhost:3000/operations-manager/triggers \
> -H "Content-Type: application/json" \
> -u "<username>:<password>" \
> -d '{
> "name": "Cisco IOS upgrade",
> "type": null,
> "routeName": "runSoftwareUpgrade"
>}'
1{
2 "message": "Successfully created the requested item",
3 "data": {
4 "name": "Cisco IOS upgrade",
5 "description": "Turn up the port",
6 "enabled": true,
7 "actionType": "automations",
8 "actionId": "string",
9 "options": {
10 "targetType": "instance",
11 "targetIdentifier": "string",
12 "chooseTargetAtRuntime": true,
13 "actionId": "0a2f"
14 },
15 "lastExecuted": 1,
16 "migrationVersion": 1,
17 "createdBy": null,
18 "created": "2024-01-15T09:30:00Z",
19 "lastUpdatedBy": null,
20 "lastUpdated": "2024-01-15T09:30:00Z",
21 "_id": "string"
22 },
23 "metadata": {}
24}
Creates a new Trigger.
Was this page helpful?
Previous

Delete a root job and all related items

Next
Built with

Authentication

AuthorizationBasic

Basic authentication of the form Basic <base64(username:password)>.

Request

trigger
Endpoint Trigger CreateobjectRequired
The format of accepted input for the creation of an Endpoint Trigger.
OR
EventSystem Trigger CreateobjectRequired
The format of accepted input for the creation of an EventSystem Trigger.
OR
Manual Trigger CreateobjectRequired
The format of accepted input for the creation of a Manual Trigger.
OR
Schedule Trigger CreateanyRequired
The format of accepted input for the creation of a Schedule Trigger.

Response

The result of the create operation.
messagestring

A human-readable message summarizing the result of the operation

dataany
Any successfully retrieved information related to the request.
metadatamap from strings to any

Any structured, wordy or machine-readable information related to the result of the operation. For success responses, this may contain information like pagination values from a search operation.

Errors

500
Internal Server Error