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": "c6f86afdea4b7c3d6d1d63fb",
"lastExecuted": 92436448,
"migrationVersion": 94951345,
"type": "endpoint",
"verb": "POST",
"routeName": "6wpHHcB0R",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "6c37650f1b859a6c0c67ccc6",
"lastExecuted": 66517971,
"migrationVersion": 16198092,
"type": "eventSystem",
"source": "ad sint velit",
"topic": "aliqua ea",
"schema": null,
"legacyWrapper": true,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "53fa350bd51978222513bf27",
"lastExecuted": 82943101,
"migrationVersion": -86376264,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "deserunt veniam commodo officia",
"legacyWrapper": true,
"formId": "65c36bce60cb2bbdc19730f5"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "b98b5424959909ea3890ae09",
"lastExecuted": 18749769,
"migrationVersion": 10535324,
"repeatInterval": 120000,
"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": "a786dbe546b0fc6085433a10",
"lastExecuted": 52473020,
"migrationVersion": -94087293,
"createdBy": "Pronghorn",
"created": "2014-10-07T08:32:40.142Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1997-05-23T19:39:02.676Z",
"_id": "4761e2023af661c3da4c6cd9"
}
}