Summary
          Create Trigger
          Description
          Create a Trigger document
          Route
          POST /operations-manager/triggers
          Roles
          
            admin
apiwrite
engineering
operations
          
          Parameters
          
            DetailsExampleSchema
          
          
            
              
                | Name | Type | Required | Description | 
            
            
              
    | trigger | object | yes | the trigger document to create | 
            
          
          
            Copied to Clipboard
            
            {
  "trigger": {
    "name": "My document",
    "type": "schedule",
    "enabled": false,
    "actionType": "automations",
    "actionId": "4321abcdef694aa79dae47ad",
    "firstRunAt": 47716314,
    "processMissedRuns": "last",
    "repeatUnit": "second",
    "repeatFrequency": null,
    "_id": "4321abcdef694aa79dae47ad",
    "created": "2019-04-16T00:43:22.038Z",
    "createdBy": "Pronghorn",
    "lastUpdated": "2019-04-16T00:43:22.038Z",
    "lastUpdatedBy": "4321abcdef694aa79dae47ad",
    "formId": null,
    "formData": null,
    "lastExecuted": 53846216,
    "nextRunAt": 11950754,
    "repeatInterval": null,
    "waitFlag": false,
    "repeatEnd": {
      "endAfter": 12950000,
      "restartAfter": 64500000,
      "removeAfterEnd": null
    }
  }
}
           
          
          Return
          
            DetailsExampleSchema
          
          
            
              
                | Name | Type | Description | 
            
            
              
                | createdTigger | object | the created trigger document | 
            
          
          
            Copied to Clipboard
            
            {
  "name": "My document",
  "type": "endpoint",
  "enabled": true,
  "actionType": "automations",
  "actionId": "4321abcdef694aa79dae47ad",
  "verb": "POST",
  "routeName": "d-b_VOG_tx",
  "_id": "5cb7b531d06cceb89fd21b1c",
  "created": "2019-04-16T00:43:22.038Z",
  "createdBy": "Pronghorn",
  "lastUpdated": "2019-04-16T00:43:22.038Z",
  "lastUpdatedBy": "5cb7b531d06cceb89fd21b1c",
  "jst": null,
  "schema": null
}