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

# Update webhook endpoint



## OpenAPI

````yaml PATCH /locations/{locationId}/webhook-endpoints/{endpointId}
openapi: 3.1.0
info:
  title: PickupBell API
  version: 1.0.0
  description: >
    Public REST surface for PickupBell — the AI receptionist for HVAC, plumbing,
    and home-services contractors.


    All requests authenticate via `Authorization: Bearer <uuid>`. Every response
    is JSON with shape `{ "data": … }` (or `{ "error": { "code", "message",
    "details" } }` on failure).


    Only endpoints an API token can successfully call are documented here.
    UI-only operations (create location, invite member, mint / revoke API key,
    billing checkout / portal) require a user session and are not part of the
    public API.
  contact:
    email: support@pickupbell.com
servers:
  - url: https://api.pickupbell.com
    description: >-
      Production (vanity domain — Vercel rewrite proxies to
      app.pickupbell.com/api/v1)
  - url: https://app.pickupbell.com/api/v1
    description: App-domain alias (works without the rewrite)
  - url: http://localhost:3000/api/v1
    description: Local development
security:
  - bearerAuth: []
tags:
  - name: Me
  - name: Locations
  - name: Members
  - name: API keys
  - name: Agent
  - name: Business hours
  - name: Call forwarding
  - name: FAQs
  - name: Pricebook
  - name: Calls
  - name: Leads
  - name: Bookings
  - name: Insights
  - name: Notifications
  - name: Integrations
  - name: Webhook endpoints
paths:
  /locations/{locationId}/webhook-endpoints/{endpointId}:
    parameters:
      - $ref: '#/components/parameters/WorkspaceId'
      - name: endpointId
        in: path
        required: true
        schema:
          type: string
          format: uuid
    patch:
      tags:
        - Webhook endpoints
      summary: Rename, pause, or resubscribe
      operationId: updateWebhookEndpoint
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookEndpointUpdate'
      responses:
        '200':
          description: Updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/WebhookEndpoint'
components:
  parameters:
    WorkspaceId:
      name: locationId
      in: path
      required: true
      schema:
        type: string
      description: Location UUID or slug (e.g. `premier-hvac`).
  schemas:
    WebhookEndpointUpdate:
      type: object
      properties:
        label:
          type: string
        active:
          type: boolean
        events:
          type: array
          items:
            $ref: '#/components/schemas/WebhookEventType'
    WebhookEndpoint:
      type: object
      description: |
        Customer-registered outbound webhook. `secret` is only ever returned
        at creation time; subsequent reads omit it.
      properties:
        id:
          type: string
          format: uuid
        location_id:
          type: string
          format: uuid
        label:
          type: string
        url:
          type: string
          format: uri
        events:
          type: array
          items:
            $ref: '#/components/schemas/WebhookEventType'
        active:
          type: boolean
        last_delivered_at:
          type: string
          format: date-time
          nullable: true
        last_error:
          type: string
          nullable: true
        failure_count:
          type: integer
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        disabled_at:
          type: string
          format: date-time
          nullable: true
        secret:
          type: string
          description: Returned ONLY on 201 from POST. Never on GET.
    WebhookEventType:
      type: string
      enum:
        - call.ended
        - call.emergency
        - lead.created
        - lead.updated
        - booking.created
        - booking.updated
        - spam.blocked
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: uuid
      description: Location-scoped API token from **Settings → API & MCP**.

````