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": "7c4693e60fa9cb953ef3f5dd",
"lastExecuted": 92805628,
"migrationVersion": -28874355,
"type": "endpoint",
"verb": "POST",
"routeName": "jMziMY4Y7mt",
"schema": null,
"jst": "137a7f75597e851b96b469b8"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "2f04e80be894b4ab4d4aeae4",
"lastExecuted": 45640354,
"migrationVersion": -79516602,
"type": "eventSystem",
"source": "nostrud exercitation culpa",
"topic": "irure velit officia Lorem",
"legacyWrapper": true,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "3ec6c6535d9797a81a64dfd0",
"lastExecuted": null,
"migrationVersion": 84156848,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "magna",
"legacyWrapper": false,
"formId": null
},
{
"repeatUnit": "second",
"repeatFrequency": null,
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "33c8f779746e52e0485782b9",
"lastExecuted": null,
"migrationVersion": 61756195,
"repeatInterval": 10000,
"formId": "7e615e588dd7f4ac1bdf99aa"
}
]
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the update operation. |
Copied to Clipboard
{
"message": "Successfully imported 3 of 4 documents",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "3172e871aaf438d383b8bc9e",
"lastExecuted": null,
"migrationVersion": -78404313,
"createdBy": "Pronghorn",
"created": "2024-10-05T07:51:27.691Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2018-01-14T02:47:27.08Z",
"_id": "68b77ce1866aad99b35caf59"
}
}