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": "3df0dcc41d5d101bd5456ca4",
"lastExecuted": 46901414,
"migrationVersion": 11937707,
"type": "endpoint",
"verb": "POST",
"routeName": "H3w3HRzKs",
"jst": "226137e218f9bdf99bc5642b"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "48dd0dae27cdb9bfd44a0e9d",
"lastExecuted": 76526941,
"migrationVersion": -2072127,
"type": "eventSystem",
"source": "nostrud aute magna dolor Excepteur",
"topic": "amet exercitation",
"schema": null,
"legacyWrapper": false,
"jst": "bb95a3e1f74babd3d6022f17"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "8dcdba08a4d10d7d9a43bd22",
"lastExecuted": 81227121,
"migrationVersion": 82047998,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "Ut culpa sunt amet",
"legacyWrapper": true,
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "d9efe7e650c415c406ee9872",
"lastExecuted": null,
"migrationVersion": -46610577,
"repeatInterval": 10000,
"formId": "7f70f6c216bdbf06ca0e4088"
}
]
}
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": true,
"actionType": "automations",
"actionId": "f402afde38c33eab9eac9824",
"lastExecuted": 10253239,
"migrationVersion": 761863,
"createdBy": "Pronghorn",
"created": "2001-11-15T11:37:31.774Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1946-02-24T15:07:47.424Z",
"_id": "e7957a4438ad047acee80e99"
}
}