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": "d684d70f6a247911826a9e95",
"lastExecuted": 51461721,
"migrationVersion": 19800636,
"type": "endpoint",
"verb": "POST",
"routeName": "oWRfxvt",
"schema": null,
"jst": "9486683293c5076971d132d3"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "0b23597b28df9996e0e52d6c",
"lastExecuted": 49743578,
"migrationVersion": -16012620,
"type": "eventSystem",
"source": "sed consectetur in aliquip amet",
"topic": "fugiat labore sunt cillum proident",
"schema": null,
"jst": "9abd377d212e482b96b93866"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "f429198e4ebe3baf896bec23",
"lastExecuted": 12632261,
"migrationVersion": 48156930,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "labore",
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "c6be529f3d1a0febcd964207",
"lastExecuted": null,
"migrationVersion": -37001538,
"repeatInterval": 10000,
"formId": "3c47e73281c00525d57f8dce"
}
]
}
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": true,
"actionType": "automations",
"actionId": "fa727fa34df43c8ed53f2a29",
"lastExecuted": 91063078,
"migrationVersion": -63025805,
"createdBy": "d53fe9ab311d13f96d850d6f",
"created": "1981-08-31T12:11:20.776Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1969-08-23T01:04:23.836Z",
"_id": "0fa5745332d829912497e2c0"
}
}