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": "9f7567f4239bf165aec49314",
"lastExecuted": 25152259,
"migrationVersion": -80953766,
"type": "endpoint",
"verb": "POST",
"routeName": "Yvqynkwlob",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "531c0817c18a6e3e046cbbbb",
"lastExecuted": 53482899,
"migrationVersion": -39016096,
"type": "eventSystem",
"source": "nulla",
"topic": "incididunt",
"jst": "edbda5a22cf8aa19b54ebb00"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "5e3a00fff87f7060cf6332f7",
"lastExecuted": null,
"migrationVersion": -23909630,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": null,
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "fc24f612e2f42d0a4068e6fa",
"lastExecuted": null,
"migrationVersion": -63747191,
"repeatInterval": 30000,
"formId": "a068d80f1305bc69c7ac7b48"
}
]
}
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": "77b303a7b53fb354f2a31fbe",
"lastExecuted": null,
"migrationVersion": 60096005,
"createdBy": "4ed3c3241c633c5b06e9cced",
"created": "1955-05-12T11:47:36.307Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2004-02-04T15:21:50.711Z",
"_id": "a70850b6d1bf3fdbd33cd889"
}
}