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": "e289ac82793450cb6f547334",
"lastExecuted": 33405500,
"migrationVersion": -13619939,
"type": "endpoint",
"verb": "POST",
"routeName": "CiueC",
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "df4a5eec4db6b83dde12bbfb",
"lastExecuted": null,
"migrationVersion": -21223639,
"type": "eventSystem",
"source": "aute in esse quis",
"topic": "non exercitation nulla",
"schema": null,
"legacyWrapper": true,
"jst": "d8b9d178087a9873dad8e006"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "5a5d4a98109ac98433859371",
"lastExecuted": null,
"migrationVersion": -25242806,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": null,
"legacyWrapper": true,
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "1f89b877fe8c21967c4e5707",
"lastExecuted": 79506739,
"migrationVersion": -90167692,
"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": false,
"actionType": "automations",
"actionId": "9f1b46766d1d355ed9cdc6a9",
"lastExecuted": null,
"migrationVersion": 87108014,
"createdBy": "6fac80d4f08f5a95500d7e9b",
"created": "2004-04-06T17:45:09.555Z",
"lastUpdatedBy": "cfb37da089160328dab9afde",
"lastUpdated": "1972-07-20T23:11:59.608Z",
"_id": "577fdfbf3f8607b288b203f8"
}
}