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": "7fa82fa0de3ba5b621dda87a",
"lastExecuted": 75612581,
"migrationVersion": -34025600,
"type": "endpoint",
"verb": "POST",
"routeName": "Ll",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "99304bb05412f4372a0b774f",
"lastExecuted": 43990078,
"migrationVersion": 96238931,
"type": "eventSystem",
"source": "sunt",
"topic": "ullamco labore",
"schema": null,
"legacyWrapper": true,
"jst": "04d1bcd56e4a8a61915e5a88"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "33a16720478b3b489cc1a5f2",
"lastExecuted": 1144400,
"migrationVersion": 28989218,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "qui ut dolore do",
"legacyWrapper": false,
"formId": null
},
{
"repeatUnit": "second",
"repeatFrequency": null,
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "16b4eb8b2c12db1a7ac94063",
"lastExecuted": null,
"migrationVersion": 31584385,
"repeatInterval": 120000,
"formId": "e7a0afca8b2c20f38043fc04"
}
]
}
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": false,
"actionType": "automations",
"actionId": "8d004412c0e3e38dd24f3ef4",
"lastExecuted": 30141417,
"migrationVersion": -71625849,
"createdBy": "Pronghorn",
"created": "1946-03-05T18:18:07.516Z",
"lastUpdatedBy": "c8f8c8d42f98eabdc6c02cf7",
"lastUpdated": "2001-06-17T12:57:30.639Z",
"_id": "26bbbbf9a5b469505d445738"
}
}