> ## Documentation Index
> Fetch the complete documentation index at: https://partner.headout.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update webhook configuration

Update your existing webhook configuration

<RequestExample>
  ```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
  curl --location --request PUT 'https://www.headout.com/api/public/v2/webhooks/' \
  --header 'Headout-Auth: <YOUR_API_KEY>' \
  --header 'Content-Type: application/json' \
  --data '{
    "url": "https://new-domain.com/webhooks/headout/booking-status",
    "enabled": true
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={"theme":{"light":"github-light","dark":"github-dark"}}
  {
    "timestamp": 1756977149760,
    "message": "Webhook configuration updated successfully"
  }
  ```

  ```json 400 theme={"theme":{"light":"github-light","dark":"github-dark"}}
  {
    "timestamp": 1756977149760,
    "error": {
      "code": "INVALID_UPDATE_REQUEST",
      "message": "Webhook URL must use HTTPS protocol"
    }
  }
  ```

  ```json 404 theme={"theme":{"light":"github-light","dark":"github-dark"}}
  {
    "timestamp": 1756977149760,
    "error": {
      "code": "WEBHOOK_NOT_FOUND",
      "message": "Webhook configuration not found for this partner"
    }
  }
  ```
</ResponseExample>


## OpenAPI

````yaml PUT /api/public/v2/webhooks/
openapi: 3.1.0
info:
  title: Headout API Docs - API Partner v2
  version: 0.0.1
servers:
  - url: https://www.headout.com
    description: Production server
  - url: https://www.sandbox-headout.com
    description: Sandbox server
security: []
paths:
  /api/public/v2/webhooks/:
    put:
      tags:
        - Webhooks
      summary: Update webhook configuration
      operationId: v2UpdateWebhook
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePartnerWebhookRequest'
      responses:
        '200':
          description: Webhook configuration updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericResponse'
        '400':
          description: Bad request - Invalid webhook configuration
        '404':
          description: Webhook configuration not found
      security:
        - apiKeyAuth: []
components:
  schemas:
    UpdatePartnerWebhookRequest:
      type: object
      required:
        - url
      properties:
        url:
          type: string
          format: uri
          pattern: ^https://.*
          description: HTTPS URL where webhooks will be delivered (must use HTTPS)
        enabled:
          type: boolean
          default: true
          description: Whether the webhook is active
    GenericResponse:
      type: object
      properties:
        timestamp:
          type: integer
          format: int64
          description: Response timestamp in milliseconds
        message:
          type:
            - string
            - 'null'
          description: Response message
        error:
          $ref: '#/components/schemas/GenericResponseError'
        data:
          type:
            - object
            - 'null'
          description: Response data payload
    GenericResponseError:
      type: object
      properties:
        code:
          type: string
          description: Error code
        message:
          type: string
          description: Error message
        detailedMessage:
          type:
            - string
            - 'null'
          description: Detailed error message
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Headout-Auth

````