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": false,
"type": true,
"enabled": -97715859.63129587,
"actionType": -86688107,
"actionId": 96259845,
"formData": "voluptate ad proident quis ex",
"firstRunAt": "ut cillum esse",
"processMissedRuns": -40244244,
"repeatUnit": false,
"repeatFrequency": "Excepteur amet",
"repeatInterval": "dolor consectetur",
"_id": true,
"formId": -14206915
}
],
"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": true,
"actionType": "automations",
"actionId": "77d913fb55041c4a64d69d2d",
"lastExecuted": null,
"migrationVersion": -76957939,
"createdBy": "2b86d703021bf8fe3c137202",
"created": "2024-10-01T23:06:23.828Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2020-04-21T16:14:52.223Z",
"_id": "70ad79a5d46a9ea1ad23f024"
}
}
]
}