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": "f44cc2b9ebf61678f9bc6b14",
"lastExecuted": 77672194,
"migrationVersion": 7980421,
"type": "endpoint",
"verb": "POST",
"routeName": "9jU",
"jst": "0196f9edbc1eccdcc4cc6195"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "40f3b0ad637eebbf9d1a361d",
"lastExecuted": null,
"migrationVersion": 99920311,
"type": "eventSystem",
"source": "ea",
"topic": "commodo ut nisi",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "b6ca5d4f9012dff08b3e3e03",
"lastExecuted": null,
"migrationVersion": -87296615,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "dolor esse",
"formId": "d59f6cd7e54895f114029d98"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "51d59ff7bb214ff9eda4bb42",
"lastExecuted": 98419940,
"migrationVersion": 55753685,
"repeatInterval": 10000,
"formId": null
}
]
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the update operation. |
Copied to Clipboard
{
"message": "Successfully created the requested item",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "4a0f8c3cbea6ba4c581d2e04",
"lastExecuted": null,
"migrationVersion": -82926444,
"createdBy": "5438ee0164b438d5c30776c2",
"created": "1982-05-19T21:49:30.521Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2010-02-27T09:55:34.588Z",
"_id": "45a62379cee261d944f7af21"
}
}