---
title: "Update Target"
method: PATCH
path: "/v1/notifications/{target_id}"
tags: ["Notifications", "Notifications"]
---

# Update Target

`PATCH /v1/notifications/{target_id}`

## Request

- Base URL: `https://api.call2me.app`
- URL: `https://api.call2me.app/v1/notifications/{target_id}`
- Auth: HTTP bearer

## Path parameters

- `target_id` string, required

## Request body

- TargetUpdate
  - `channel` 'whatsapp' | 'sms' | 'email' | 'custom_url', nullable
  - `destination` string, nullable
  - `recipient_kind` 'owner' | 'caller' | 'fixed' | 'team', nullable
  - `trigger_event` 'call_ended' | 'chat_ended', nullable
  - `condition` object, nullable
  - `template` string, nullable
  - `template_vars` object, nullable
  - `active` boolean, nullable

## Response `200`

Successful Response

- NotificationTarget: Bir agent'ın çağrı/chat sonrası çıkış kuralı.
  - `target_id` string, required
  - `agent_id` string, required
  - `user_id` string, required
  - `trigger_event` 'call_ended' | 'chat_ended'
  - `channel` 'whatsapp' | 'sms' | 'email' | 'custom_url', required
  - `destination` string, nullable
  - `recipient_kind` 'owner' | 'caller' | 'fixed' | 'team'
  - `condition` object
  - `template` string, nullable
  - `template_vars` object
  - `active` boolean
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

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