Update Headout Webhook Configuration

**🔄 Update Existing Headout Webhook Configuration** Update the existing webhook configuration with new URL or enabled status. ## 📋 **Request Body** ```json { "url": "https://new-domain.com/webhooks/headout/booking-status", "enabled": false } ``` ## ⚠️ **Requirements** - **Existing Configuration**: Webhook configuration must already exist - **HTTPS Only**: New webhook URL must use HTTPS protocol - **URL Length**: Must be between 1 and 2048 characters - **Valid Format**: Must be a properly formatted URL ## 🎯 **Use Cases** - **URL Change**: Update webhook endpoint URL - **Enable/Disable**: Toggle webhook active status - **Environment Migration**: Change URL when moving between environments - **Domain Updates**: Update webhook after domain changes ## 📊 **Response Codes** - **200**: Webhook updated successfully - **400**: Invalid request (bad URL format, missing fields) - **404**: Webhook configuration not found - **500**: Internal server error

Authentication

AuthorizationBearer

JWT token from @etera-ai/auth package (auth.etera.dev) - Format: Bearer <token>

Request

This endpoint expects an object.
urlstringRequiredformat: "uri"1-2048 characters
HTTPS URL where webhooks will be delivered
enabledbooleanOptionalDefaults to true
Whether the webhook is active

Response

Webhook configuration updated successfully

Errors