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": "4c680acf14afc1c93a63f5d8",
"lastExecuted": null,
"migrationVersion": -60355184,
"type": "endpoint",
"verb": "POST",
"routeName": "DZ",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "23d78ba73d7aeef838b2f497",
"lastExecuted": null,
"migrationVersion": 38861332,
"type": "eventSystem",
"source": "proident aliqua",
"topic": "ullamco minim cillum",
"schema": null,
"legacyWrapper": true,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "a686dec00ae91415dd26bec6",
"lastExecuted": null,
"migrationVersion": -53283896,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "cupidatat magna consectetur",
"legacyWrapper": false,
"formId": null
},
{
"repeatUnit": null,
"repeatFrequency": null,
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "bb7ce59e0dd23a239ed8f9ae",
"lastExecuted": null,
"migrationVersion": -6979153,
"repeatInterval": 120000,
"formId": null
}
]
}
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": "c65c6a98b9b13cb795ecf399",
"lastExecuted": null,
"migrationVersion": -77410294,
"createdBy": "Pronghorn",
"created": "1982-10-19T13:12:57.017Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1955-08-15T21:58:36.228Z",
"_id": "63cdbdef670c86cb017883c9"
}
}