---
title: "Atualiza assinatura"
method: PUT
path: "/v1/webhook/subscription/{subscriptionId}"
tags: ["Webhooks"]
---

# Atualiza assinatura

`PUT /v1/webhook/subscription/{subscriptionId}`

Atualiza assinatura de webhook.

## Path parameters

- `subscriptionId` string, uuid, required

## Request body

- PublicReqUpdateWebhookSubscriptionDTO
  - `fields` string[], required — Campos a serem atualizados.
  - `name` string, nullable — Nome para identificação da assinatura.
  - `url` string, nullable — URL destino para onde serão enviadas requisições POST.
  - `enabled` boolean, nullable — Estado inicial da assinatura (ativa ou inativa).
  - `events` string[], nullable — Tópicos de webhook que deverão ser inscritos nesta assinatura.

## Response `200`

Success

- PublicWebhookSubscriptionDTO
  - `id` string, uuid
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `companyId` string, uuid
  - `name` string, nullable
  - `url` string, nullable
  - `enabled` boolean
  - `events` PublicWebhookEventDTO[], nullable
    - `event` 'SESSION_NEW' | 'SESSION_UPDATE' | 'SESSION_COMPLETE' | 'MESSAGE_RECEIVED' | 'MESSAGE_UPDATED' | 'MESSAGE_SENT' | 'CONTACT_NEW' | 'CONTACT_UPDATE' | 'CONTACT_TAG_UPDATE' | 'PAYMENT_NEW' | 'PAYMENT_UPDATE' | 'PANEL_CARD_NEW' | 'PANEL_CARD_UPDATE' | 'PANEL_CARD_STEP_CHANGE' | 'PANEL_CARD_NOTE_NEW' | 'PANEL_CARD_NOTE_UPDATE'
    - `description` string, nullable

## Other responses

- `500` — Server Error

---

[API](https://skmtc.net/wts/apis/core.md) · [All operations](https://skmtc.net/wts/apis/core/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wts/core/versions/1efd0a6ba643/schema)
