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": -36355899,
"type": 19243181.062293008,
"enabled": -23772107.070998862,
"actionType": 89184327.10286951,
"actionId": -3966421,
"formData": 32054702.768996537,
"firstRunAt": "dolor sed minim deserunt",
"processMissedRuns": -41918022.13243805,
"repeatUnit": 53938012,
"repeatFrequency": true,
"repeatInterval": -31956054.113431424,
"_id": "dolor",
"formId": "consectetur ullamco"
},
{
"name": "myCoolDocumentName",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "5d3c9907cd441ea31334113c",
"verb": "POST",
"routeName": "wOXkjH",
"_id": "130e090ba1cce1c9b8b780e3",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": 52994769,
"createdBy": null,
"created": "1992-08-26T14:29:59.456Z",
"lastUpdatedBy": "adipisicing eu ex",
"lastUpdated": "1980-06-11T11:53:32.403Z"
},
{
"name": false,
"type": 84537017,
"enabled": false,
"actionType": 82664364.4232603,
"actionId": 11839956,
"formData": false,
"firstRunAt": true,
"processMissedRuns": 86568216.97784957,
"repeatUnit": 14905050.99338159,
"repeatFrequency": 88010746.08158568,
"repeatInterval": 91419416.77353764,
"_id": 25981861.039309174,
"formId": 95998863.89841595
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"enabled": true,
"actionType": "automations",
"actionId": "5b9ac097dfd60641aaba1596",
"source": "in est nostrud consectetur",
"topic": "fugiat laboris nulla",
"schema": null,
"_id": "ae0af19049e324541e0b6e7e",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": -73811524,
"legacyWrapper": false,
"createdBy": "irure",
"created": "1971-03-18T17:10:05.098Z",
"lastUpdatedBy": null,
"lastUpdated": "1973-05-14T22:32:32.759Z"
}
],
"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": true,
"actionType": "automations",
"actionId": "76143947bfb3d7706e723c47",
"lastExecuted": 88649235,
"migrationVersion": 66082774,
"createdBy": "93ef5f57d0a69133914e0a97",
"created": "1952-04-05T09:35:09.379Z",
"lastUpdatedBy": "7aed280fb8c95fa65cacc3d3",
"lastUpdated": "1989-07-05T06:40:59.0Z",
"_id": "b695381e33af3e2d3ac0de98"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "69da38f27c77d54885c13a31",
"lastExecuted": 36819899,
"migrationVersion": -20248832,
"createdBy": "Pronghorn",
"created": "1949-11-24T10:03:29.329Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1993-11-08T03:28:27.547Z",
"_id": "60d3c4ab7ed466021e3dbf3f"
}
}
]
}