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": "7b6f72b3585b4071b51d1542",
"lastExecuted": 60587639,
"migrationVersion": 94056377,
"type": "endpoint",
"verb": "POST",
"routeName": "ioxCErGF",
"schema": null,
"jst": "34aa3f2aefe112bf83fbe337"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "62b7b99a5e999caca6f4e5f1",
"lastExecuted": 26958423,
"migrationVersion": 97566713,
"type": "eventSystem",
"source": "adipisicing",
"topic": "cupidatat in deserunt cillum elit",
"legacyWrapper": false,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "8149f8aae6345de66321fb54",
"lastExecuted": null,
"migrationVersion": 33925321,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": null,
"legacyWrapper": false,
"formId": "6045aa1db920d7cd6cb35855"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "279c6688ea05d9d1eb2873da",
"lastExecuted": 4026908,
"migrationVersion": 17740624,
"repeatInterval": 10000,
"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": "4ef869cbe2a3eda27bc4b727",
"lastExecuted": null,
"migrationVersion": 69690116,
"createdBy": "Pronghorn",
"created": "1980-05-28T05:31:54.869Z",
"lastUpdatedBy": "400105b2f3f04b9e6eb0e8e0",
"lastUpdated": "1960-02-07T04:38:40.09Z",
"_id": "9ff558b21e13bdcc395c21c3"
}
}