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": "864b5d8400d4a055c668f83f",
"lastExecuted": 98011262,
"migrationVersion": 76808103,
"type": "endpoint",
"verb": "POST",
"routeName": "q",
"jst": "02b49aeb697fc8253660489e"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "2ba46f2e04ea41ee4cca383c",
"lastExecuted": 74408985,
"migrationVersion": 32276445,
"type": "eventSystem",
"source": "in sed dolore mollit amet",
"topic": "aliqua",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "19a670e73f40726752b90885",
"lastExecuted": 9957911,
"migrationVersion": 5398213,
"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": "b8441d559e0e17a0adb5f877",
"lastExecuted": null,
"migrationVersion": -63898764,
"repeatInterval": 30000,
"formId": "c4aa96878c6da46a8b8a53e8"
}
]
}
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": "96add79af2f0961543627831",
"lastExecuted": null,
"migrationVersion": -45081640,
"createdBy": "430866aaa1a81093572d5a0b",
"created": "2003-01-13T06:53:44.395Z",
"lastUpdatedBy": "fd073595d802094ceb50926e",
"lastUpdated": "1995-05-20T10:55:09.907Z",
"_id": "d7b2f6708d9c5a0b1e54b8f5"
}
}