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": "c8c5ba1b0abc653fd01e0a03",
"lastExecuted": null,
"migrationVersion": -73822004,
"type": "endpoint",
"verb": "POST",
"routeName": "j_",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "32880b429f300f774aa6ec9b",
"lastExecuted": 5963999,
"migrationVersion": 5862600,
"type": "eventSystem",
"source": "aliqua ullamco laboris labore",
"topic": "anim veniam",
"schema": null,
"legacyWrapper": false,
"jst": "dd8e4f6b85faae85d5c641f6"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "d45c48c1bf2f213f8377651b",
"lastExecuted": null,
"migrationVersion": 94829275,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": "Duis et",
"legacyWrapper": true,
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "444313f31b6984ee4da61814",
"lastExecuted": null,
"migrationVersion": 63725553,
"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": "b3f5e5df7847656e1f806f0a",
"lastExecuted": null,
"migrationVersion": 92232323,
"createdBy": "5be34b538df2cbf7b222c8b4",
"created": "1948-03-21T10:36:09.533Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1961-03-24T09:08:29.313Z",
"_id": "309bf3888c85aa9b527e0457"
}
}