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": "a141dd51a4e52ab6c76e3dfd",
"lastExecuted": null,
"migrationVersion": -72636123,
"type": "endpoint",
"verb": "POST",
"routeName": "rEztr",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "d2ae6b39746670ec3b7412f5",
"lastExecuted": 92392909,
"migrationVersion": 90824808,
"type": "eventSystem",
"source": "sed magna laboris aute laborum",
"topic": "dolore",
"schema": null,
"legacyWrapper": false,
"jst": "795dd88e9feab5c4fec93fa3"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "1be6287b61bfd06fd95d6c5a",
"lastExecuted": 74574121,
"migrationVersion": -50114679,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": "incididunt sunt Lorem",
"legacyWrapper": true,
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "95324fc2aa3a479d9cc13286",
"lastExecuted": null,
"migrationVersion": -20216193,
"repeatInterval": 10000,
"formId": "a17d2d7038c4a412e0f25c69"
}
]
}
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": "70783b33ab1c53e67ce05a8a",
"lastExecuted": null,
"migrationVersion": -51186282,
"createdBy": "ce6ecdf084c3147e6133b55e",
"created": "1991-10-08T13:51:30.773Z",
"lastUpdatedBy": "cc8e275ef8952d8cd9c805b4",
"lastUpdated": "2006-01-02T16:44:02.906Z",
"_id": "81b7cac7977c43974c3b9b20"
}
}