Summary
Create Trigger
Description
Create a new Trigger.
Route
POST /operations-manager/triggers
Roles
admin
apiwrite
engineering
operations
Parameters
DetailsExampleSchema
| Name |
Type |
Required |
Description |
| trigger |
object |
yes |
The details of the Trigger document to be created. |
Copied to Clipboard
{
"title": "trigger",
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "trigger-create",
"oneOf": [
{
"name": "myCoolDocumentName",
"type": "endpoint",
"routeName": "c9Gv66thW",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "d6712ced766856a7cb04884e",
"lastExecuted": null,
"migrationVersion": 4783094,
"createdBy": "ed031aebbb9ce492a9f3b4bc",
"created": "1965-01-11T17:17:45.545Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1989-10-27T18:04:49.488Z",
"verb": "POST",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "nulla incididunt occaecat",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "547bf0497b1f37b83c006493",
"lastExecuted": 63017735,
"migrationVersion": 82753716,
"createdBy": "Pronghorn",
"created": "1948-07-04T03:29:54.431Z",
"lastUpdatedBy": "7685cdeffd5bd038fb1f7fe2",
"lastUpdated": "2022-01-03T01:25:45.312Z",
"source": "ex et ad sint sit",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "e6e2e8c0ee393fd3c3c40ab3",
"lastExecuted": null,
"migrationVersion": -58350026,
"createdBy": "47fe28ad133278c42f68afa8",
"created": "2006-04-01T14:57:30.78Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2000-11-20T11:07:31.943Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": null,
"formId": "3f6ef8d48e589d4645d6b644"
},
{
"name": "myCoolDocumentName",
"repeatUnit": "second",
"repeatFrequency": 27912470,
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "640966f0f365df5afebb2105",
"lastExecuted": null,
"migrationVersion": 58972408,
"createdBy": "74f71d5c94ad1701eabdb6d2",
"created": "1990-08-15T07:04:25.915Z",
"lastUpdatedBy": "585342feb7749d66df2003a7",
"lastUpdated": "2018-08-20T10:07:41.254Z",
"repeatInterval": 30000,
"formId": null
}
]
}
Return
DetailsExampleSchema
| Name |
Type |
Description |
| createdTigger |
object |
The result of the create operation. |
Copied to Clipboard
{
"message": "Successfully imported 3 of 4 documents",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "e8d2be946276512cbeab8266",
"lastExecuted": null,
"migrationVersion": -33822760,
"createdBy": "Pronghorn",
"created": "1953-12-30T18:29:36.471Z",
"lastUpdatedBy": "b536c367a15f17028f6e5bdb",
"lastUpdated": "2005-04-27T13:17:45.31Z",
"_id": "7f65196fd00fb80c82ab09ce"
}
}