Skip to main content
PATCH
/
webhooks
/
{webhookId}
Atualizar um webhook
curl --request PATCH \
  --url http://localhost:3001/webhooks/{webhookId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "url": "<string>",
  "events": [
    "crm.lead.created"
  ],
  "isActive": true,
  "headers": {}
}
'
{
  "id": "<string>",
  "officeId": "<string>",
  "name": "<string>",
  "description": "<string>",
  "url": "<string>",
  "events": [
    "<string>"
  ],
  "isActive": true,
  "headers": {},
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.jurichat.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Insira o token JWT no formato: Bearer {token}

Path Parameters

webhookId
string
required

ID único do webhook a ser atualizado.

Body

application/json
name
string

Novo nome para o webhook.

Required string length: 1 - 100
description
string | null

Nova descrição (pass null para limpar).

Maximum string length: 500
url
string<uri>

Nova URL de destino.

events
enum<string>[]

Nova lista de eventos inscritos. Substitui a lista existente inteiramente.

Minimum array length: 1
Available options:
crm.lead.created,
crm.lead.updated,
crm.lead.deleted,
crm.lead.moved,
chat.conversation.created,
chat.conversation.updated,
chat.conversation.assigned,
contact.created,
contact.updated,
contact.deleted,
webhook.test
isActive
boolean

Defina para false para pausar as entregas sem deletar o webhook.

headers
object

Cabeçalhos personalizados (pass null para limpar todos os cabeçalhos personalizados).

Response

Default Response

id
string
required

ID único do webhook.

officeId
string
required

ID do escritório ao qual este webhook pertence.

name
string
required

Nome atualizado.

description
string | null
required

Descrição atualizada.

url
string
required

URL de destino atualizada.

events
string[]
required

Lista de eventos inscritos atualizada.

isActive
boolean
required

Status ativo atualizado.

headers
object
required

Cabeçalhos personalizados atualizados.

createdAt
string
required

Timestamp de criação ISO 8601.

updatedAt
string
required

Timestamp de última atualização ISO 8601.