Update a Webhook

Update the configuration of an existing webhook. Only the fields provided in the request are modified.

PATCH https://api.platica.mx/v1/webhooks/{webhookId}

URL parameters

ParameterTypeDescriptionRequired
webhookIdstringUnique identifier of the webhook

Request body

{
  "name": "Webhook Actualizado",
  "active": false,
  "events": [
    "conversation.created",
    "conversation.status.updated",
    "conversation.operation.updated",
    "message.created"
  ]
}

Body parameters

All parameters are optional. Only the fields included in the request are updated.

ParameterTypeDescription
namestringDescriptive webhook name (max 100 characters)
urlstringURL where notifications are sent (max 500 characters)
eventsarrayList of events to subscribe to
activebooleanWebhook state
secretstringSecret used to validate authenticity (max 255 characters)
headersobjectCustom headers to include in the requests (max 10)

Response

{
  "status": "success",
  "message": "Webhook actualizado exitosamente",
  "data": {
    "id": "webhook_abc123",
    "workspaceId": "ws_456"
  }
}