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": "8d3fb5d6e046f5cfa991cb2d",
"lastExecuted": null,
"migrationVersion": -97919582,
"type": "endpoint",
"verb": "POST",
"routeName": "EJLCYrnbM",
"jst": "2f08f1b5376f573ca9f8bc2d"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "d6b21c964eb2ce66eee71456",
"lastExecuted": null,
"migrationVersion": -64776992,
"type": "eventSystem",
"source": "dolor laboris dolore id",
"topic": "culpa sit aute",
"schema": null,
"legacyWrapper": false,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "9c12393a9ac06260786e9f3c",
"lastExecuted": null,
"migrationVersion": 53311862,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": "commodo dolore labore",
"legacyWrapper": false,
"formId": "56a9932aabdbec65335f5879"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "7a817ef2985a4c3f7674408c",
"lastExecuted": 77416791,
"migrationVersion": -95349030,
"repeatInterval": 10000,
"formId": "0d8ba3a1eaa2605f5f4acd5d"
}
]
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the update operation. |
Copied to Clipboard
{
"message": "Successfully imported 3 of 4 documents",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "f1af90f8c746c7275a66b844",
"lastExecuted": 35789878,
"migrationVersion": -10170194,
"createdBy": "dd86deba3c9426632fd7c841",
"created": "1972-05-25T13:03:54.939Z",
"lastUpdatedBy": "69c525832966d80134a7f6a9",
"lastUpdated": "1990-07-23T01:19:09.327Z",
"_id": "4d52b36ffce0fc95dc9d7598"
}
}