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": "9b38772bae986cf798c3fed1",
"lastExecuted": 9492946,
"migrationVersion": 95619303,
"type": "endpoint",
"verb": "POST",
"routeName": "-X",
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "fc36227daa7eb2644880debc",
"lastExecuted": null,
"migrationVersion": -42035250,
"type": "eventSystem",
"source": "Lorem",
"topic": "dolore consequat",
"legacyWrapper": false,
"jst": "d709e35653eb9e0937ceec4c"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "061b1ec299a903845c5eeb72",
"lastExecuted": 38222801,
"migrationVersion": -39295100,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": true,
"formId": null
},
{
"repeatUnit": "second",
"repeatFrequency": null,
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "cd425f08b7df115fa0ff1ce7",
"lastExecuted": 43982515,
"migrationVersion": 30630887,
"repeatInterval": 10000,
"formId": "8d29363d65acc7b632ca0a76"
}
]
}
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": true,
"actionType": "automations",
"actionId": "f9284c467ae9f08b1ed13673",
"lastExecuted": 78326200,
"migrationVersion": 52308281,
"createdBy": "Pronghorn",
"created": "1966-07-26T18:40:06.278Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1968-06-09T02:37:27.682Z",
"_id": "4e5df4afbf6a281c889745fa"
}
}