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": "3e5e4d5475de830fa34e50de",
"lastExecuted": 75936217,
"migrationVersion": -28853319,
"type": "endpoint",
"verb": "POST",
"routeName": "LQg4",
"schema": null,
"jst": "df56cbccfc3dcccc5cb3d8d3"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "0af90282326ef09d4ceb8f59",
"lastExecuted": 96000864,
"migrationVersion": 87351314,
"type": "eventSystem",
"source": "dolor Excepteur fugiat exercitation laborum",
"topic": "veniam in",
"legacyWrapper": false,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "4fc29d4fbfcdacd858017fcb",
"lastExecuted": null,
"migrationVersion": -75875563,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": true,
"formId": "f703148eec39ad0b0a4b7351"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "8372ffd83a8a2ffb139d80f1",
"lastExecuted": null,
"migrationVersion": 91837813,
"repeatInterval": 30000,
"formId": "67952ff8a75003fc0e928c9c"
}
]
}
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": false,
"actionType": "automations",
"actionId": "e2bcb3a53e59809c2919d211",
"lastExecuted": null,
"migrationVersion": 12913051,
"createdBy": "28bde0b264cdc4a8aea7f043",
"created": "2006-05-28T08:37:13.631Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1981-03-04T03:05:26.293Z",
"_id": "ba34b3776f6032cb55aebdd3"
}
}