Summary
Import Triggers
Description
Route
PUT /operations-manager/triggers
Roles
admin
apiwrite
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
triggers |
array |
yes |
A list of Trigger documents to import |
options |
object |
yes |
optional parameters |
Copied to Clipboard
{
"triggers": [
{
"name": "My document",
"actionType": "automations",
"actionId": "4321abcdef694aa79dae47ad",
"enabled": true,
"type": "manual",
"_id": "4321abcdef694aa79dae47ad",
"created": "2019-04-16T00:43:22.038Z",
"createdBy": "4321abcdef694aa79dae47ad",
"lastUpdated": "2019-04-16T00:43:22.038Z",
"lastUpdatedBy": "5cb7b531d06cceb89fd21b1c",
"formId": null,
"formData": null
},
{
"name": 44205653,
"type": 82629342.17392385,
"enabled": -95859705,
"actionType": -23013264,
"actionId": -38884447,
"firstRunAt": "ea",
"processMissedRuns": -92432410.09653111
},
{
"name": "My document",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "4321abcdef694aa79dae47ad",
"verb": "POST",
"routeName": "gWHDQ",
"_id": "5cb7b531d06cceb89fd21b1c",
"created": "2019-04-16T00:43:22.038Z",
"createdBy": "Pronghorn",
"lastUpdated": "2019-04-16T00:43:22.038Z",
"lastUpdatedBy": "Pronghorn",
"jst": null,
"schema": null
},
{
"name": "tempor",
"type": 65243441,
"enabled": 94751180.44687015,
"actionType": true,
"actionId": "dolor enim sint",
"firstRunAt": false,
"processMissedRuns": -679321.2936203331
},
{
"name": "My document",
"actionType": "automations",
"actionId": "5cb7b531d06cceb89fd21b1c",
"enabled": true,
"type": "manual",
"_id": "5cb7b531d06cceb89fd21b1c",
"created": "2019-04-16T00:43:22.038Z",
"createdBy": "4321abcdef694aa79dae47ad",
"lastUpdated": "2019-04-16T00:43:22.038Z",
"lastUpdatedBy": "4321abcdef694aa79dae47ad",
"formId": "5cb7b531d06cceb89fd21b1c"
}
]
}
Copied to Clipboard
{
"type": "object",
"properties": {
"triggers": {
"title": "trigger",
"type": "array",
"items": {
"oneOf": [
{
"$ref": "endpoint-schema"
},
{
"$ref": "eventSystem-schema"
},
{
"$ref": "manual-schema"
},
{
"$ref": "schedule-schema"
}
]
}
},
"options": {
"title": "options",
"type": "object",
"properties": {}
}
},
"required": [
"triggers",
"options"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
createdTigger |
object |
the created trigger document |
Copied to Clipboard
{
"name": "My document",
"actionType": "automations",
"actionId": "5cb7b531d06cceb89fd21b1c",
"enabled": false,
"type": "manual",
"_id": "5cb7b531d06cceb89fd21b1c",
"created": "2019-04-16T00:43:22.038Z",
"createdBy": "4321abcdef694aa79dae47ad",
"lastUpdated": "2019-04-16T00:43:22.038Z",
"lastUpdatedBy": "Pronghorn",
"formId": "5cb7b531d06cceb89fd21b1c"
}