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": 14825422.200312838,
"type": 22683819,
"enabled": false,
"actionType": 50501981.773579,
"actionId": "consectetur ipsum",
"formData": -49430264,
"firstRunAt": 39184472,
"processMissedRuns": -30661853,
"repeatUnit": true,
"repeatFrequency": -81403035,
"repeatInterval": false,
"_id": -61745956,
"formId": false
},
{
"name": "myCoolDocumentName",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "e7406e8c57b98ddf193100c7",
"verb": "POST",
"routeName": "3pZTK7c27Ul",
"_id": "63f3e61f514c1fcc0ca9361e",
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": -20470108,
"createdBy": "elit ad dolore sint ullamco",
"created": "2014-09-04T07:35:42.89Z",
"lastUpdatedBy": "aliqua voluptate dolor consequat ullamco",
"lastUpdated": "1985-04-15T17:12:38.424Z"
}
],
"options": {
"adapterMap": {
"staging": "production"
}
}
}
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": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "aa902d46fc3838a916711c17",
"lastExecuted": null,
"migrationVersion": -85337329,
"createdBy": "d688f8999ab0ac16b22fa872",
"created": "1946-12-29T05:00:12.238Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1958-04-21T09:55:27.563Z",
"_id": "c781cd134ae091801936d348"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "520a34bf0f4446ca7824f3e6",
"lastExecuted": 30867126,
"migrationVersion": 74516316,
"createdBy": "Pronghorn",
"created": "1969-07-31T18:09:16.212Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1949-09-12T10:39:49.504Z",
"_id": "0039c29894e72a9cbb5485de"
}
}
]
}