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": -4909858.748121992,
"type": false,
"enabled": -26589399.49964179,
"actionType": -41122668.15165686,
"actionId": true,
"formData": 24277496,
"firstRunAt": true,
"processMissedRuns": -98779232,
"repeatUnit": -72039662.26303536,
"repeatFrequency": "dolore Duis occaecat cillum",
"repeatInterval": true,
"_id": true,
"formId": "aliqua fugiat"
},
{
"name": "myCoolDocumentName",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "15d5d447d95c5b827307d0d5",
"verb": "POST",
"routeName": "L2T3MtvNxl",
"_id": "1f7fcec40053e513ab88597f",
"description": "Some helpful information about the document",
"lastExecuted": 86733291,
"migrationVersion": -15708702,
"createdBy": "quis Excepteur",
"created": "2001-08-24T20:09:26.339Z",
"lastUpdatedBy": null,
"lastUpdated": "2005-02-23T18:38:09.406Z"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"enabled": false,
"actionType": "automations",
"actionId": "81a14e8f7a8ddef4b6f1c3ba",
"source": "reprehenderit esse sunt",
"topic": "labore dolor irure ex",
"schema": null,
"_id": "ee9bdef48dda3cd8e7c205ca",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": 8673447,
"migrationVersion": 35766633,
"legacyWrapper": false,
"createdBy": "dolor laboris dolore est qui",
"created": "1970-03-18T03:51:06.283Z",
"lastUpdatedBy": null,
"lastUpdated": "1972-08-13T23:58:50.207Z"
}
],
"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 created the requested item",
"data": [
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "83a77d37b24b5111cfb95f4c",
"lastExecuted": 55642006,
"migrationVersion": -55870717,
"createdBy": "Pronghorn",
"created": "1989-11-14T10:41:34.518Z",
"lastUpdatedBy": "2f4d27e66be09f502c24a1fb",
"lastUpdated": "2023-10-15T01:58:44.759Z",
"_id": "c3c2edf86a004f1927af4e05"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "6d0f306e142264294cff5463",
"lastExecuted": 81343050,
"migrationVersion": -44642984,
"createdBy": "ed911be46047684d5a1f9f81",
"created": "1989-09-09T06:20:43.904Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1966-03-27T19:19:01.217Z",
"_id": "357378971bb1bae988d54dd8"
}
}
]
}