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": false,
"actionType": "automations",
"actionId": "dc5b4b9d5077c944d9460973",
"lastExecuted": null,
"migrationVersion": 62486685,
"type": "endpoint",
"verb": "POST",
"routeName": "ny",
"jst": "cbd0431cc114c9b8785be2aa"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "7ef54dcac145d51120e3416f",
"lastExecuted": null,
"migrationVersion": -15679063,
"type": "eventSystem",
"source": "ad ut",
"topic": "incididunt anim",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "f073b59447765cf3b2339e78",
"lastExecuted": null,
"migrationVersion": 72631594,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"formId": null
},
{
"repeatUnit": null,
"repeatFrequency": null,
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "33d93def0877c25eb19dead6",
"lastExecuted": 5161483,
"migrationVersion": -5060279,
"repeatInterval": 10000,
"formId": "34ea1b403e70ade7d34abe99"
}
]
}
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": false,
"actionType": "automations",
"actionId": "cefc1649b483ba8bdb6e6246",
"lastExecuted": null,
"migrationVersion": 71305523,
"createdBy": "b5fdfdbddb9efbededef339c",
"created": "1951-06-24T05:36:46.604Z",
"lastUpdatedBy": "a5b63b54abcbc71e14d75b9d",
"lastUpdated": "1965-10-22T09:28:32.641Z",
"_id": "baa2d1d0ab2ee3bd27b58b4e"
}
}