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": "endpoint",
"enabled": false,
"actionType": "automations",
"actionId": "c88415c57a6d722e81397318",
"verb": "POST",
"routeName": "FISz",
"_id": "c83e4f2fad5573113824b17f",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": 75820357,
"createdBy": null,
"created": "1966-01-24T19:20:53.727Z",
"lastUpdatedBy": "consectetur ipsum",
"lastUpdated": "1968-11-26T00:53:53.484Z"
}
],
"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": "f589e4d1a72b7972423f0382",
"lastExecuted": null,
"migrationVersion": 27520080,
"createdBy": "ebcbea80d9e8231df83d36cb",
"created": "2012-10-29T23:32:22.757Z",
"lastUpdatedBy": "e7e98489224039f78ab37293",
"lastUpdated": "2015-11-16T15:12:01.076Z",
"_id": "f660494b776e29e36705fb7c"
}
}
]
}