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": "47a56818c5ca3ecce37e78b2",
"lastExecuted": null,
"migrationVersion": -49623472,
"type": "endpoint",
"verb": "POST",
"routeName": "EwIe",
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "0bfdcc5a46232d591d88aeb3",
"lastExecuted": 48817304,
"migrationVersion": 80834046,
"type": "eventSystem",
"source": "aliquip nulla Ut aute",
"topic": "enim aliquip eiusmod",
"schema": null,
"legacyWrapper": true,
"jst": "3fcdb15bfaf7850ff50d6596"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "5c843e30e165c49ac1235eff",
"lastExecuted": 88402059,
"migrationVersion": 25990402,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "Duis et deserunt Ut qui",
"legacyWrapper": true,
"formId": "4d5143544a583dac147900eb"
},
{
"repeatUnit": null,
"repeatFrequency": null,
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "7db22d30af6de85e4ab44629",
"lastExecuted": 94593265,
"migrationVersion": 6346493,
"repeatInterval": 30000,
"formId": "d1f7af21867d987fc999d5f6"
}
]
}
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": "b5eb2fff7a62ee5a6e5d9ae7",
"lastExecuted": 66018772,
"migrationVersion": 81594072,
"createdBy": "Pronghorn",
"created": "1978-10-02T17:42:01.647Z",
"lastUpdatedBy": "8ad53b036cd504e346ceda3f",
"lastUpdated": "1962-09-25T22:46:06.75Z",
"_id": "c3cc830f355290bd2eec5b1a"
}
}