---
title: "Partially update a proactive trigger"
method: PATCH
path: "/api/v1/proactive-triggers/{id}"
---

# Partially update a proactive trigger

`PATCH /api/v1/proactive-triggers/{id}`

## Request

- Base URL: `https://smartwebchat.eu`
- URL: `https://smartwebchat.eu/api/v1/proactive-triggers/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string
  - `triggerType` 'time_on_page' | 'exit_intent' | 'scroll_depth' | 'page_view_count' | 'inactivity'
  - `conditionValue` object
  - `targetPagePattern` string
  - `messageTemplate` string
  - `cooldownMinutes` integer
  - `enabled` boolean
  - `priority` integer

## Response `200`

Updated ProactiveTrigger

## Other responses

- `400`: Invalid input
- `401`: Missing or invalid API key
- `404`: Trigger not found
- `429`: Rate limit exceeded: 600 requests per minute per account across all /api/v1/ routes. Wait for the seconds given in Retry-After (60) and retry.

---

[API](https://skmtc.dev/smartwebchat/apis/smartwebchat-api.md) · [All operations](https://skmtc.dev/smartwebchat/apis/smartwebchat-api/llms.txt) · [OpenAPI document](https://skmtc.dev/smartwebchat/apis/smartwebchat-api/revisions/1b052502dacb?raw)
