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": "4985b186fcf8489f6a044734",
"lastExecuted": null,
"migrationVersion": -24185835,
"type": "endpoint",
"verb": "POST",
"routeName": "zLvA",
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "fee4fa5e5eaa6f6da53c7a0d",
"lastExecuted": null,
"migrationVersion": -39806483,
"type": "eventSystem",
"source": "ut in",
"topic": "dolor",
"schema": null,
"legacyWrapper": true,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "00818cd3bd0db86ebb8e3991",
"lastExecuted": 41987134,
"migrationVersion": -24856866,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": "ex dolor aliquip",
"legacyWrapper": false,
"formId": "f5558d84c11b9a1b99351aa6"
},
{
"repeatUnit": "week",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "74b81b55aa5b927415458c97",
"lastExecuted": null,
"migrationVersion": -57594017,
"repeatInterval": 10000,
"formId": "f8b09514e3adb4195ef7860c"
}
]
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the update operation. |
Copied to Clipboard
{
"message": "Successfully retrieved search results",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "5270b170b0c83bcb1dd04c1f",
"lastExecuted": 3462406,
"migrationVersion": -41859150,
"createdBy": "Pronghorn",
"created": "1988-09-04T11:08:18.685Z",
"lastUpdatedBy": "69cf0484e60adc08deec45d8",
"lastUpdated": "1996-06-29T03:37:45.938Z",
"_id": "cf5cb3c93e480c512e9db793"
}
}