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

# Update a webhook (url, subscribed events, or active state)



## OpenAPI

````yaml /openapi/openapi-provider.json patch /provider/webhooks/{id}
openapi: 3.0.0
info:
  title: OfferGrid API
  description: >-
    **Provider API** - Create and manage service offerings, fulfill orders from
    resellers.


    As a provider, you can:

    - Create and publish service offerings (internet, electricity)

    - Control which resellers can access your offers (all, preferred, or
    selected)

    - View and manage orders from resellers

    - Update order fulfillment status and schedule installations

    - Track order lifecycle from pending to completion
  version: '1.0'
  contact: {}
servers:
  - url: https://api.offergrid.io
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
tags:
  - name: provider-offers
    description: 'Provider: Manage your service offerings'
  - name: provider-orders
    description: 'Provider: Fulfill orders from resellers'
paths:
  /provider/webhooks/{id}:
    patch:
      tags:
        - provider-webhooks
      summary: Update a webhook (url, subscribed events, or active state)
      operationId: ProviderWebhooksController_update
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateWebhookDto'
      responses:
        '404':
          description: Webhook not found or does not belong to your team
      security:
        - api-key: []
components:
  schemas:
    UpdateWebhookDto:
      type: object
      properties:
        url:
          type: string
          example: https://provider-system.example.com/offergrid-callback
        events:
          type: array
          items:
            type: string
            enum:
              - order.created
              - order.item.created
              - order.item.status_changed
              - order.cancelled
        isActive:
          type: boolean
          description: Pause/resume deliveries without deleting the webhook
      title: Update Webhook
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Team API key for authentication. Your team role
        (provider/reseller/hybrid) determines which endpoints you can access.

````