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
| Parameter | Type | Description | Required |
|---|---|---|---|
webhookId | string | Unique 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.
| Parameter | Type | Description |
|---|---|---|
name | string | Descriptive webhook name (max 100 characters) |
url | string | URL where notifications are sent (max 500 characters) |
events | array | List of events to subscribe to |
active | boolean | Webhook state |
secret | string | Secret used to validate authenticity (max 255 characters) |
headers | object | Custom headers to include in the requests (max 10) |
Response
{
"status": "success",
"message": "Webhook actualizado exitosamente",
"data": {
"id": "webhook_abc123",
"workspaceId": "ws_456"
}
}