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": "b85371e0777d849155ee9c0b",
"lastExecuted": null,
"migrationVersion": -20570436,
"type": "endpoint",
"verb": "POST",
"routeName": "E7L7w",
"schema": null,
"jst": "b312cf39b593461e3901cc2a"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "462cebd278de7d6d8f223863",
"lastExecuted": 63947065,
"migrationVersion": -89851227,
"type": "eventSystem",
"source": "amet do ipsum laboris",
"topic": "non irure in",
"jst": "64a82165ce4eb62ed0291cdc"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "97a944c742184169d6665a05",
"lastExecuted": null,
"migrationVersion": -66666162,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": null,
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "8a731d8b292da1c5d982ca08",
"lastExecuted": null,
"migrationVersion": 62867490,
"repeatInterval": 30000,
"formId": "a0389878659a4608c142d67a"
}
]
}
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": "3f09e2041d7114a4faa2052c",
"lastExecuted": 39503598,
"migrationVersion": 44433321,
"createdBy": "988036ef107feaaf3ba4d1e0",
"created": "1996-07-21T00:54:11.257Z",
"lastUpdatedBy": "ded4364f2f2905d144f6848e",
"lastUpdated": "2000-02-12T07:03:11.131Z",
"_id": "4db117c896e3a1231f68b983"
}
}