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": false,
"type": "manual",
"_id": "5cb7b531d06cceb89fd21b1c",
"created": "2019-04-16T00:43:22.038Z",
"createdBy": "Pronghorn",
"lastUpdated": "2019-04-16T00:43:22.038Z",
"lastUpdatedBy": "Pronghorn",
"formId": "4321abcdef694aa79dae47ad",
"formData": null
}
]
}
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",
"type": "schedule",
"enabled": true,
"actionType": "automations",
"actionId": "5cb7b531d06cceb89fd21b1c",
"firstRunAt": 64776727,
"processMissedRuns": "last",
"repeatUnit": "second",
"repeatFrequency": null,
"_id": "5cb7b531d06cceb89fd21b1c",
"created": "2019-04-16T00:43:22.038Z",
"createdBy": "Pronghorn",
"lastUpdated": "2019-04-16T00:43:22.038Z",
"lastUpdatedBy": "4321abcdef694aa79dae47ad",
"formId": null,
"lastExecuted": null,
"nextRunAt": 70950556,
"repeatInterval": 24826953,
"waitFlag": true,
"repeatEnd": null
}