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": 53073439.88933343,
"type": "eiusmod magna adipisicing",
"enabled": -35295861.55767497,
"actionType": false,
"actionId": "non in elit",
"formData": -93509830.07188787,
"firstRunAt": -91225081.00619072,
"processMissedRuns": -52474518,
"repeatUnit": 42883531.89592096,
"repeatFrequency": 7865999.042318612,
"repeatInterval": "culpa",
"_id": "enim officia dolore",
"formId": true
},
{
"name": "myCoolDocumentName",
"type": "manual",
"enabled": false,
"actionType": "automations",
"actionId": "cedd343f96039894c29c1712",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"_id": "ea83fa721b270e445e86618a",
"formId": "myCoolDocumentName",
"description": "Some helpful information about the document",
"lastExecuted": 40391050,
"migrationVersion": -60118203,
"createdBy": "laborum dolor ut in consectetur",
"created": "1995-11-28T08:04:47.901Z",
"lastUpdatedBy": null,
"lastUpdated": "1959-04-17T22:34:53.076Z",
"formSchemaHash": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"enabled": true,
"actionType": "automations",
"actionId": "1533b22671d6f18296c58c3e",
"source": "pariatur ad consectetur enim mollit",
"topic": "ullamco sunt non fugiat nostrud",
"schema": null,
"_id": "75ce7b878fe9b1f884a73837",
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": -71393985,
"createdBy": "non commodo nostrud dolor",
"created": "1961-02-20T17:35:30.607Z",
"lastUpdatedBy": "quis",
"lastUpdated": "1988-07-02T09:10:19.776Z"
},
{
"title": "triggers"
}
],
"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": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "f16f07c3b4a688f3ab7ca511",
"lastExecuted": null,
"migrationVersion": 1936863,
"createdBy": "b9ccbed1b6ceff10ad0503d0",
"created": "1950-04-26T23:11:56.907Z",
"lastUpdatedBy": "480a1b1b36577ff5d2383191",
"lastUpdated": "2007-05-28T16:29:51.714Z",
"_id": "30033e03523ee68f63f8925d"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "4f7355116960536e61bf04ce",
"lastExecuted": 49596583,
"migrationVersion": 97747972,
"createdBy": "93a1f383a5d87556c57d93eb",
"created": "2016-05-11T20:23:28.033Z",
"lastUpdatedBy": "4f4d68073f0531d20d9ee13d",
"lastUpdated": "1949-01-23T02:28:22.892Z",
"_id": "95f2f505852baf3930cb016e"
}
}
]
}