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": "endpoint",
"enabled": false,
"actionType": "automations",
"actionId": "4321abcdef694aa79dae47ad",
"verb": "POST",
"routeName": "hD6Ooj",
"_id": "5cb7b531d06cceb89fd21b1c",
"created": "2019-04-16T00:43:22.038Z",
"createdBy": "Pronghorn",
"lastUpdated": "2019-04-16T00:43:22.038Z",
"lastUpdatedBy": "Pronghorn",
"jst": null,
"schema": null
}
}
Return
DetailsExampleSchema
Name |
Type |
Description |
createdTigger |
object |
the created trigger document |
Copied to Clipboard
{
"name": "My document",
"actionType": "automations",
"actionId": "5cb7b531d06cceb89fd21b1c",
"enabled": true,
"type": "manual",
"_id": "5cb7b531d06cceb89fd21b1c",
"created": "2019-04-16T00:43:22.038Z",
"createdBy": "5cb7b531d06cceb89fd21b1c",
"lastUpdated": "2019-04-16T00:43:22.038Z",
"lastUpdatedBy": "Pronghorn",
"formId": null,
"formData": null
}