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": "e9b11c2de952ebd53a7eaa0f",
"lastExecuted": null,
"migrationVersion": 14021086,
"type": "endpoint",
"verb": "POST",
"routeName": "noFsxIZKH",
"schema": null,
"jst": "0b2d42747ae97b70b21f1d0d"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "724c86e48a68c26e4ff12d30",
"lastExecuted": 20076299,
"migrationVersion": -2820195,
"type": "eventSystem",
"source": "fugiat sit non id aliquip",
"topic": "anim in dolore proident",
"schema": null,
"legacyWrapper": false,
"jst": "f6726eaf3885b54f10344595"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "199ebfe9f348f50231ce5020",
"lastExecuted": null,
"migrationVersion": -16841556,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "reprehenderit irure",
"legacyWrapper": true,
"formId": null
},
{
"repeatUnit": null,
"repeatFrequency": null,
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "85b08c60aa9adc06a7dd2976",
"lastExecuted": null,
"migrationVersion": -27942714,
"repeatInterval": 120000,
"formId": "12e0f1e089382c34021a8004"
}
]
}
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": "e17f8337cb996fc2eecf7bc4",
"lastExecuted": null,
"migrationVersion": -28427865,
"createdBy": "dc31732f518d3ac9120e55d9",
"created": "1971-06-18T00:49:04.936Z",
"lastUpdatedBy": "7021e9abe2e1f0ca92cbce04",
"lastUpdated": "1985-10-05T04:19:48.695Z",
"_id": "a6ddc8dc40a0b21dab5ce560"
}
}