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": "7319fd2a6f65947acc70ab64",
"lastExecuted": null,
"migrationVersion": 42769555,
"type": "endpoint",
"verb": "POST",
"routeName": "U",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "7322a79338f6e831216cbd98",
"lastExecuted": null,
"migrationVersion": 24191750,
"type": "eventSystem",
"source": "qui",
"topic": "qui dolore sed consequat nostrud",
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "39afd03f3890071afda8f844",
"lastExecuted": 89676668,
"migrationVersion": 82117577,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": null,
"formId": "59cd8eb6ad5db829a4c65033"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "972614d4504c4dce4877eb9b",
"lastExecuted": null,
"migrationVersion": 81868765,
"repeatInterval": 30000,
"formId": "6e7aab2ca23e538870eb82a6"
}
]
}
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": true,
"actionType": "automations",
"actionId": "6ffb23c67646ac7e9ea07e43",
"lastExecuted": null,
"migrationVersion": -61273161,
"createdBy": "Pronghorn",
"created": "1985-02-17T00:47:08.974Z",
"lastUpdatedBy": "a786a15e98b559019beb6a7c",
"lastUpdated": "1972-05-06T06:24:50.127Z",
"_id": "6d576f980945baeb44223795"
}
}