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": "867829ae2d7bbe04de27b07e",
"source": "aliqua esse",
"topic": "dolor proident ex officia",
"schema": null,
"_id": "1f1bfc5a7d279ff331c1d2b5",
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": 61549078,
"legacyWrapper": false,
"createdBy": "minim sit proident dolor",
"created": "1968-09-28T23:16:00.361Z",
"lastUpdatedBy": null,
"lastUpdated": "2025-01-08T00:16:17.617Z"
},
{
"name": "myCoolDocumentName",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "d7bab785d19e17288f2ef1d0",
"verb": "POST",
"routeName": "GSky",
"_id": "ddea230002254cdba048a0cd",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": 33359177,
"migrationVersion": 73474119,
"createdBy": "quis non",
"created": "1984-04-26T18:37:32.571Z",
"lastUpdatedBy": null,
"lastUpdated": "1951-06-27T23:44:11.925Z"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"enabled": true,
"actionType": "automations",
"actionId": "722f169d2de94fbb01a0b3f1",
"source": "magna sit",
"topic": "sint adipisicing dolore mollit",
"_id": "3c465e52890552804fb1f78f",
"description": "Some helpful information about the document",
"lastExecuted": 96836892,
"migrationVersion": 74088058,
"legacyWrapper": true,
"createdBy": "commodo labore",
"created": "1975-02-08T07:35:08.345Z",
"lastUpdatedBy": null,
"lastUpdated": "1965-08-01T18:20:57.027Z"
}
],
"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": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "a1f72c3a65abf3ba3ff91e18",
"lastExecuted": null,
"migrationVersion": -48165318,
"createdBy": "d0fd8f939e64f18e598cd45c",
"created": "2018-06-30T13:58:29.255Z",
"lastUpdatedBy": "8f8cce486006a3e1891839c7",
"lastUpdated": "1956-08-02T01:51:15.991Z",
"_id": "52de8c759a37d9a910ba1e2d"
}
}
]
}