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": "f45e4e3d71878243f13aeb0d",
"lastExecuted": null,
"migrationVersion": 4009983,
"type": "endpoint",
"verb": "POST",
"routeName": "15dTZQNVF",
"schema": null,
"jst": "c8d16fd22500796fdf0ca72d"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "9d3f7caa6f84b757e537425e",
"lastExecuted": null,
"migrationVersion": -91088861,
"type": "eventSystem",
"source": "ad dolore in",
"topic": "eiusmod et",
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "3c417923df930dc110cfb887",
"lastExecuted": 37002867,
"migrationVersion": 22404471,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": null,
"formId": "5e76d4d2518b187a1d703d64"
},
{
"repeatUnit": null,
"repeatFrequency": null,
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "9c1a4c9ba81ce47655387def",
"lastExecuted": 39332471,
"migrationVersion": 39450064,
"repeatInterval": 30000,
"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": true,
"actionType": "automations",
"actionId": "8764b5660a8f4b7a53acaec0",
"lastExecuted": 76650582,
"migrationVersion": -5232939,
"createdBy": "f430c9df9a8b8cf599becee8",
"created": "1947-01-31T09:10:13.581Z",
"lastUpdatedBy": "55ced52bf944889211aa9c12",
"lastUpdated": "1971-12-19T18:34:00.253Z",
"_id": "0894a4ae2846c1f192e5a682"
}
}