---
title: "Update trigger"
method: PATCH
path: "/operations-manager/triggers/{id}"
tags: ["Operations Manager"]
---

# Update trigger

`PATCH /operations-manager/triggers/{id}`

## Request

- Base URL: `https://example.itential.io`
- URL: `https://example.itential.io/operations-manager/triggers/{id}`
- Auth: none declared

Updates a Trigger.

## Path parameters

- `id` string, required: A string which is formatted like an ObjectId, Distinct from an actual ObjectId.

## Request body

- union
  - OperationsManagerTriggerUpdate0: The format of accepted input for an update operation on an Endpoint Trigger.
    - `name` string: The name of the document
    - `description` string: The description of the document
    - `enabled` boolean: A flag to determine if this Trigger is enabled or not.
    - `actionType` 'automations': The type of component this Trigger will invoke.
    - `actionId` string: A string which is formatted like an ObjectId, Distinct from an actual ObjectId.
    - `options` OperationsManagerTriggerUpdateOneOf0Options: Configuration options specific to this trigger.
      - `targetType` 'instance' | 'group'
      - `targetIdentifier` string, nullable
      - `chooseTargetAtRuntime` boolean
      - `actionId` string: A 4-digit hexadecimal id
    - `lastExecuted` integer, nullable: A timestamp in milliseconds of the time this Trigger was last executed.
    - `migrationVersion` integer: The current document version of this document.
    - `type` unknown
    - `verb` unknown
    - `routeName` string: User defined route name.
    - `schema` OperationsManagerTriggerUpdateOneOf0Schema: POST body filter schema.
    - `jst` string, nullable
  - OperationsManagerTriggerUpdate1: The format of accepted input for an update operation on an EventSystem Trigger.
    - `name` string: The name of the document
    - `description` string: The description of the document
    - `enabled` boolean: A flag to determine if this Trigger is enabled or not.
    - `actionType` 'automations': The type of component this Trigger will invoke.
    - `actionId` string: A string which is formatted like an ObjectId, Distinct from an actual ObjectId.
    - `options` OperationsManagerTriggerUpdateOneOf1Options: Configuration options specific to this trigger.
      - `targetType` 'instance' | 'group'
      - `targetIdentifier` string, nullable
      - `chooseTargetAtRuntime` boolean
      - `actionId` string: A 4-digit hexadecimal id
    - `lastExecuted` integer, nullable: A timestamp in milliseconds of the time this Trigger was last executed.
    - `migrationVersion` integer: The current document version of this document.
    - `type` unknown
    - `source` string: The source of the event.
    - `topic` string: The event topic.
    - `schema` OperationsManagerTriggerUpdateOneOf1Schema: Event payload filter schema.
    - `legacyWrapper` boolean: A boolean determining whether payload data is wrapped in a 'payload' property
    - `jst` string, nullable
  - OperationsManagerTriggerUpdate2: The format of accepted input for an update operation on a Manual Trigger.
    - `name` string: The name of the document
    - `description` string: The description of the document
    - `enabled` boolean: A flag to determine if this Trigger is enabled or not.
    - `actionType` 'automations': The type of component this Trigger will invoke.
    - `actionId` string: A string which is formatted like an ObjectId, Distinct from an actual ObjectId.
    - `options` OperationsManagerTriggerUpdateOneOf2Options: Configuration options specific to this trigger.
      - `targetType` 'instance' | 'group'
      - `targetIdentifier` string, nullable
      - `chooseTargetAtRuntime` boolean
      - `actionId` string: A 4-digit hexadecimal id
    - `lastExecuted` integer, nullable: A timestamp in milliseconds of the time this Trigger was last executed.
    - `migrationVersion` integer: The current document version of this document.
    - `type` unknown
    - `formData` OperationsManagerTriggerUpdateOneOf2FormData: A JSON object created by filling out the associated JSON Form.
    - `formSchemaHash` string, nullable
    - `legacyWrapper` boolean: A boolean determining whether form data is wrapped in a 'formData' property
    - `formId` string, nullable: The id of a JSON Form used to provide inputs to a job from this trigger.
  - union: The format of accepted input for an update operation on a Schedule Trigger.
    - unknown
    - unknown

## Response `200`

The result of the update operation.

- OperationsManagerUpdateTriggerResponse200: A success response from an API method
  - `message` string, required: A human-readable message summarizing the result of the operation
  - `data` unknown, required
  - `metadata` object, required: Any structured, wordy or machine-readable information related to the result of the operation. For success responses, this may contain information like pagination values from a search operation.

## Other responses

- `500`: Error response from API

## Changes

- **2026-10-31** `2095cc90e583`: 2 info
  - api tag `Operations Manager` added
  - api tag `operationsManager` removed

[Operation history](https://skmtc.dev/itential/apis/itential-2/changes/operations-manager/triggers/:id/patch.md)

---

[API](https://skmtc.dev/itential/apis/itential-2.md) - [All operations](https://skmtc.dev/itential/apis/itential-2/llms.txt) - [OpenAPI document](https://skmtc.dev/itential/apis/itential-2/revisions/2095cc90e583?raw)
