Summary
Import Triggers
Description
Import Triggers.
Route
PUT /operations-manager/triggers
Roles
admin
apiwrite
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
triggers |
array |
yes |
An array of exported Trigger documents. |
options |
object |
yes |
Optional parameters. |
Copied to Clipboard
{
"triggers": [
{
"name": "myCoolDocumentName",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "031474a279a1fe31fd0275f8",
"verb": "POST",
"routeName": "Q5DLadSNx",
"schema": null,
"_id": "968395b1cae231bcfbbb4796",
"description": "Some helpful information about the document",
"lastExecuted": 89288253,
"migrationVersion": 54590297,
"createdBy": null,
"created": "2022-11-04T01:37:32.728Z",
"lastUpdatedBy": "fugiat eu ex",
"lastUpdated": "2015-04-11T13:44:57.781Z"
},
{
"name": false,
"type": "pariatur ipsum deserunt",
"enabled": 66431875.831597775,
"actionType": 49306632.09713623,
"actionId": false,
"formData": 76088330,
"firstRunAt": false,
"processMissedRuns": "aute Duis magna ex irure",
"repeatUnit": false,
"repeatFrequency": "quis nulla sint",
"repeatInterval": 78369032.71948269,
"_id": 42395462.34505764,
"formId": "aliqua"
},
{
"name": "myCoolDocumentName",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "67a9c4a0d4e448e0256f5391",
"verb": "POST",
"routeName": "gK9p",
"_id": "9cbd726e55b115596f7d1778",
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": 39510740,
"createdBy": null,
"created": "2016-08-11T04:48:36.581Z",
"lastUpdatedBy": "et qui irure",
"lastUpdated": "2007-05-27T18:17:13.691Z"
},
{
"name": 51742545,
"type": true,
"enabled": -89413379,
"actionType": "voluptate",
"actionId": -33548895.175001994,
"formData": 62832311.17652774,
"firstRunAt": 58014353.65177515,
"processMissedRuns": -20916335.346377134,
"repeatUnit": "consequat laborum veniam pariatur",
"repeatFrequency": 92637102,
"repeatInterval": 378534,
"_id": 34094801.103349596,
"formId": "incididunt in dolore qui veniam"
}
],
"options": {
"adapterMap": {
"old_name": "new_name"
}
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"triggers": {
"title": "triggers",
"type": "array",
"items": {
"title": "triggers",
"$ref": "trigger-json"
}
},
"options": {
"title": "options",
"type": "object",
"properties": {
"adapterMap": {
"type": "object",
"description": "A mapping of provenance names to be converted upon import, specified in \"old_name\": \"new_name\" format.",
"examples": [
{
"staging": "production"
},
{
"old_name": "new_name"
}
]
}
},
"additionalProperties": false
}
},
"required": [
"triggers",
"options"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
createdTigger |
object |
The result of the import operation. |
Copied to Clipboard
{
"message": "Successfully retrieved search results",
"data": [
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "743acc6c83df74fc8ef0b6e1",
"lastExecuted": 93958194,
"migrationVersion": -13788195,
"createdBy": "Pronghorn",
"created": "2014-05-25T09:32:44.611Z",
"lastUpdatedBy": "6c450cbddbcd308b54b059c8",
"lastUpdated": "2002-07-18T06:46:45.581Z",
"_id": "76a8109cc2ad6e5d2f8703a3"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "17debaf9bb4566a5c826ac48",
"lastExecuted": 33828959,
"migrationVersion": 25193175,
"createdBy": "Pronghorn",
"created": "1974-09-11T03:09:03.575Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2014-10-03T06:39:08.877Z",
"_id": "0fffd3f2a460269066fe95d2"
}
}
]
}