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": "b6d400906b0ae49007e924ff",
"lastExecuted": null,
"migrationVersion": -50870532,
"type": "endpoint",
"verb": "POST",
"routeName": "yy",
"jst": "d879ffa098d0f9be8cc4fa7a"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "9e3965c5d1f6a3f47e440e2f",
"lastExecuted": 95736601,
"migrationVersion": -71729512,
"type": "eventSystem",
"source": "in ex",
"topic": "pariatur aliquip sed proident aliqua",
"jst": "5866d04376979e74d9552835"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "e9dfd0c0fb7aa693f59cda26",
"lastExecuted": 55044951,
"migrationVersion": 89796942,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "quis",
"formId": "9b3fd56dfe5dfa420c463afe"
},
{
"repeatUnit": null,
"repeatFrequency": null,
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "18ba2c14eae35158ad4ebb01",
"lastExecuted": null,
"migrationVersion": 43206501,
"repeatInterval": 30000,
"formId": null
}
]
}
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": "b823f7f66d924d27c3084cc9",
"lastExecuted": null,
"migrationVersion": -19718451,
"createdBy": "6bcd664535ca42c392cff73e",
"created": "1965-08-21T01:46:10.743Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1948-11-29T04:43:24.886Z",
"_id": "da4e85b4dcde1bd0a4915560"
}
}