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": "a8d773a280f8098a976cc2d6",
"lastExecuted": 72505258,
"migrationVersion": 61174762,
"type": "endpoint",
"verb": "POST",
"routeName": "SI9Z",
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "f7b740beba1b2943e357fda8",
"lastExecuted": null,
"migrationVersion": -44518726,
"type": "eventSystem",
"source": "ut adipisicing",
"topic": "in nulla",
"schema": null,
"legacyWrapper": true,
"jst": "8419a65bffb0286906c8e169"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "02e306c23f4d4de8d53c5e01",
"lastExecuted": 92575597,
"migrationVersion": -37865336,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "minim dolor exercitation aute",
"legacyWrapper": true,
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "5e26e01f3c3cb4095444898b",
"lastExecuted": 36255834,
"migrationVersion": -19627378,
"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": "fd65f4f1826a15702b2139a6",
"lastExecuted": null,
"migrationVersion": -75922826,
"createdBy": "374a3d9e4a7a3600dec2d24c",
"created": "2018-08-15T14:43:24.429Z",
"lastUpdatedBy": "955493344ec5fcdbcc9257ab",
"lastUpdated": "2024-04-24T10:37:17.404Z",
"_id": "f8f44e2f136eeeb5f49c654b"
}
}