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": "069afedbc4f5cbf29b49899a",
"lastExecuted": null,
"migrationVersion": 63925819,
"type": "endpoint",
"verb": "POST",
"routeName": "pvdh",
"jst": "7732e01fac03d601a5dc321e"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "3003caeb54a8e4419dc4c52c",
"lastExecuted": null,
"migrationVersion": 76679638,
"type": "eventSystem",
"source": "eu mollit Duis ut",
"topic": "deserunt",
"schema": null,
"legacyWrapper": false,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "b2dca912c709e1af1088c8b1",
"lastExecuted": null,
"migrationVersion": 86421649,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "sunt aliquip",
"legacyWrapper": true,
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "e8e8b875593ed39047e33981",
"lastExecuted": null,
"migrationVersion": -57441871,
"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": "3380e044d56d6f765e139ea9",
"lastExecuted": null,
"migrationVersion": -6953211,
"createdBy": "Pronghorn",
"created": "1946-12-15T04:45:27.34Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2014-08-17T03:53:49.257Z",
"_id": "59de149888c4862f4598ce2d"
}
}