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": "bd517d4c33ef49f88526823d",
"lastExecuted": null,
"migrationVersion": 77430844,
"type": "endpoint",
"verb": "POST",
"routeName": "3Vyrg",
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "da62748695d4fa6ecd35e80e",
"lastExecuted": null,
"migrationVersion": -91042591,
"type": "eventSystem",
"source": "id",
"topic": "amet",
"legacyWrapper": false,
"jst": "f705d248cb0c1740f686c83c"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "4a483c468f9c2aceb0ff3e45",
"lastExecuted": 72249052,
"migrationVersion": -36184718,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "quis ut adipisicing",
"legacyWrapper": false,
"formId": "ea7f292640e7fc4819882aab"
},
{
"repeatUnit": null,
"repeatFrequency": null,
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "8458af302093b1dfe7512389",
"lastExecuted": 43484339,
"migrationVersion": 81806749,
"repeatInterval": 10000,
"formId": "94eb3b400c20342c741f741a"
}
]
}
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": "78b35649a09232461ded65e1",
"lastExecuted": 57146146,
"migrationVersion": -34090497,
"createdBy": "Pronghorn",
"created": "1959-03-13T23:14:03.395Z",
"lastUpdatedBy": "a9ba91c90874785c0434005d",
"lastUpdated": "1960-07-15T20:20:23.253Z",
"_id": "29196342a691a8f179d0334e"
}
}