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": "eventSystem",
"enabled": true,
"actionType": "automations",
"actionId": "383c68a394c5b7b5fa6a43ad",
"source": "ea sint esse ad laboris",
"topic": "dolore sint aliqua dolor",
"_id": "93ed1e62d0776e5f8292e7e7",
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": 66556596,
"legacyWrapper": false,
"createdBy": "nulla aliqua consectetur labore occaecat",
"created": "1949-09-04T11:31:35.646Z",
"lastUpdatedBy": "fugiat elit cupidatat cillum ut",
"lastUpdated": "1970-12-02T06:30:30.657Z"
},
{
"name": 36592802.283873826,
"type": "consequat dolore qui laborum",
"enabled": false,
"actionType": "Ut cupidatat Excepteur in",
"actionId": false,
"formData": true,
"firstRunAt": false,
"processMissedRuns": 21213031,
"repeatUnit": -33789814,
"repeatFrequency": 62802342,
"repeatInterval": "enim fugiat",
"_id": 14707317.415685102,
"formId": -61061760
},
{
"name": "myCoolDocumentName",
"type": "manual",
"enabled": true,
"actionType": "automations",
"actionId": "acf79c845d0ed3ab44a908a8",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"_id": "81d8218e167165a7386aef12",
"formId": null,
"description": "Some helpful information about the document",
"lastExecuted": 62761827,
"migrationVersion": -47119383,
"createdBy": "sit minim aliqua",
"created": "2021-06-09T14:07:28.45Z",
"lastUpdatedBy": "do commodo labore",
"lastUpdated": "2002-10-14T15:14:21.293Z",
"formSchemaHash": "aliqua nisi",
"legacyWrapper": true
},
{
"title": "triggers"
}
],
"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 imported 3 of 4 documents",
"data": [
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "15eda297dcb9545a53a27ed4",
"lastExecuted": null,
"migrationVersion": -31163553,
"createdBy": "Pronghorn",
"created": "1986-12-27T16:42:19.73Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1992-12-25T09:31:41.182Z",
"_id": "220c595a6aeffc18184f884a"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "8570dcba68cf826081433141",
"lastExecuted": null,
"migrationVersion": -93950728,
"createdBy": "Pronghorn",
"created": "2022-03-26T05:58:22.16Z",
"lastUpdatedBy": "3c8a5eda0273d504a219a99e",
"lastUpdated": "2013-09-18T00:06:41.753Z",
"_id": "9c19fce4982117a35bed3a79"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "6c2f4e666508bb4a09516b98",
"lastExecuted": 96376540,
"migrationVersion": 78506553,
"createdBy": "a7a40490d83f105e80a2936b",
"created": "2014-03-19T15:34:38.109Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1981-08-31T19:37:19.252Z",
"_id": "5e5b1dfee12526907e31e36b"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "de4530d30d3a87bddba8ceb5",
"lastExecuted": null,
"migrationVersion": -27223781,
"createdBy": "Pronghorn",
"created": "1956-05-22T16:09:55.695Z",
"lastUpdatedBy": "2e6766464fa3342a9428610a",
"lastUpdated": "1972-11-25T23:38:06.199Z",
"_id": "818734b29909a89d712c7e2b"
}
}
]
}