Summary
Update Trigger
Description
Update a Trigger.
Route
PATCH /operations-manager/triggers/:id
Roles
admin
apiwrite
engineering
operations
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
id |
string |
yes |
The id of the Trigger to update. |
updates |
object |
yes |
The details of the Trigger document to update. |
Copied to Clipboard
{
"title": "updates",
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "trigger-update",
"oneOf": [
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "f937f90c73379a6531e82436",
"lastExecuted": null,
"migrationVersion": -77901584,
"type": "endpoint",
"verb": "POST",
"routeName": "uzclKDlSla",
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "4b9e80eda9e1399689740778",
"lastExecuted": 58133113,
"migrationVersion": 72355167,
"type": "eventSystem",
"source": "ut sed in",
"topic": "ea sit aute Ut",
"legacyWrapper": true,
"jst": "6b149471f293add779dfbaf3"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "65e2b43a3a6daab8f3df0214",
"lastExecuted": 24798131,
"migrationVersion": -55630765,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": true,
"formId": "5c00b9a3dcade303b2dab51a"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "c3cbac0a67bad7f8ac7f048a",
"lastExecuted": null,
"migrationVersion": 95608305,
"repeatInterval": 120000,
"formId": "093724dd8342695c05d17651"
}
]
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the update operation. |
Copied to Clipboard
{
"message": "Successfully created the requested item",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "7a8568ab2b7d479cf0b1ad11",
"lastExecuted": null,
"migrationVersion": 48907995,
"createdBy": "416195314a415a7401cac4fd",
"created": "1958-07-11T20:45:23.343Z",
"lastUpdatedBy": "c80ad492bddbecd362e0e208",
"lastUpdated": "2014-08-21T17:42:41.964Z",
"_id": "5e18350aaef2b934673ea748"
}
}