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": "bc347889001d361abe639de4",
"lastExecuted": 62468117,
"migrationVersion": -23202920,
"type": "endpoint",
"verb": "POST",
"routeName": "0yhoCZGAb",
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "81ada5d8e7a0f737e39e5192",
"lastExecuted": null,
"migrationVersion": -35641462,
"type": "eventSystem",
"source": "ut magna enim et",
"topic": "aliquip anim ut",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "c4092c603af631be23f16620",
"lastExecuted": null,
"migrationVersion": -87366283,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": null,
"formId": "8e969f418c7a9ea87d50b1e1"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "928ce10b2fd6d7cba20bee5a",
"lastExecuted": 98805334,
"migrationVersion": 38059790,
"repeatInterval": 120000,
"formId": "97b0fe0ded18112ad8775e2d"
}
]
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the update operation. |
Copied to Clipboard
{
"message": "Successfully retrieved search results",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "2e85995a8a5710b3079b985c",
"lastExecuted": 20005307,
"migrationVersion": -53149146,
"createdBy": "b5b055a9f3207e553fd2d283",
"created": "1966-10-16T10:51:21.887Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2022-02-08T12:02:13.109Z",
"_id": "cdd3057a834bf948ab71dff8"
}
}