---
title: "Update Many Ticket Triggers"
method: PUT
path: "/api/v2/triggers/update_many"
tags: ["Triggers"]
---

# Update Many Ticket Triggers

`PUT /api/v2/triggers/update_many`

Updates the position or the active status of multiple ticket triggers. Any additional properties are ignored.

#### Allowed For

* Agents

#### Request Parameters

The PUT request expects a `triggers` object that lists the ticket triggers to update.

Each ticket trigger may have the following properties:

| Name        | Mandatory | Description
| --------    | --------- | -----------
| id          | yes       | The ID of the ticket trigger to update
| position    | no        | The new position of the ticket trigger
| active      | no        | The active status of the ticket trigger (true or false)
| category_id | no        | The ID of the new category the ticket trigger is to be moved to

#### Example Request

```js
{
  "triggers": [
    {"id": 25, "position": 3},
    {"id": 23, "position": 5},
    {"id": 27, "position": 9},
    {"id": 22, "position": 7}
  ]
}
```

## Request body

- TriggerBulkUpdateRequest
  - `triggers` TriggerBulkUpdateItem[]
    - `active` boolean — The active status of the ticket trigger (true or false)
    - `category_id` string — The ID of the new category the ticket trigger is to be moved to
    - `id` integer, required — The ID of the ticket trigger to update
    - `position` integer — The new position of the ticket trigger

## Response `200`

Success response

- TriggersResponse
  - `count` integer
  - `next_page` string, nullable
  - `previous_page` string, nullable
  - `triggers` TriggerObject[]
    - `actions` TriggerActionObject[], required — An array of actions describing what the ticket trigger will do. See [Actions reference](/documentation/ticketing/reference-guides/actions-reference)
      - `field` string
      - `value` union
        - string
        - integer
        - union[]
          - union
            - string
            - integer
    - `active` boolean — Whether the ticket trigger is active
    - `category_id` string — The ID of the category the ticket trigger belongs to
    - `conditions` TriggerConditionsObject, required — An object that describes the circumstances under which the trigger performs its actions. See [Conditions reference](/documentation/ticketing/reference-guides/conditions-reference)
      - `all` TriggerConditionObject[], nullable
        - `field` string
        - `operator` string
        - `value` union
          - string
          - integer
          - union[]
            - union
              - …
      - `any` TriggerConditionObject[], nullable
        - `field` string
        - `operator` string
        - `value` union
          - string
          - integer
          - union[]
            - union
              - …
    - `created_at` string — The time the ticket trigger was created
    - `default` boolean — If true, the ticket trigger is a standard trigger
    - `description` string — The description of the ticket trigger
    - `id` integer — Automatically assigned when created
    - `position` integer — Position of the ticket trigger, determines the order they will execute in
    - `raw_title` string — The raw format of the title of the ticket trigger
    - `title` string, required — The title of the ticket trigger
    - `updated_at` string — The time of the last update of the ticket trigger
    - `url` string — The url of the ticket trigger

---

[API](https://skmtc.dev/botbrains-io/apis/support-api.md) · [All operations](https://skmtc.dev/botbrains-io/apis/support-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/botbrains-io/support-api/revisions/d53eac07ba68/schema)
