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

# Update a project webhook

> Partially update URL, events, or enabled flag.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json patch /projects/{project_id}/webhooks/{webhook_id}
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /projects/{project_id}/webhooks/{webhook_id}:
    patch:
      tags:
        - project-webhooks
      summary: Update a project webhook
      description: Partially update URL, events, or enabled flag.
      operationId: update_project_webhook_projects__project_id__webhooks__webhook_id__patch
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            title: Project Id
        - name: webhook_id
          in: path
          required: true
          schema:
            type: string
            title: Webhook Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateProjectWebhook'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectWebhook'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UpdateProjectWebhook:
      properties:
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
          description: HTTPS destination URL.
        events:
          anyOf:
            - items:
                $ref: '#/components/schemas/WebhookEvent'
              type: array
              minItems: 1
            - type: 'null'
          title: Events
          description: Events that should trigger delivery.
        enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Enabled
          description: Whether the webhook is active.
      type: object
      title: UpdateProjectWebhook
      description: Partial update for a project webhook.
    ProjectWebhook:
      properties:
        id:
          type: string
          title: Id
        project_id:
          type: string
          title: Project Id
        organization_id:
          type: string
          title: Organization Id
        url:
          type: string
          title: Url
        events:
          items:
            type: string
          type: array
          title: Events
        enabled:
          type: boolean
          title: Enabled
        consecutive_failures:
          type: integer
          title: Consecutive Failures
          default: 0
        disabled_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Disabled Reason
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - project_id
        - organization_id
        - url
        - events
        - enabled
        - created_at
        - updated_at
      title: ProjectWebhook
      description: A project webhook as returned by list/get (secret omitted).
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    WebhookEvent:
      type: string
      enum:
        - pipeline.completed
        - pipeline.failed
        - pipeline.canceled
        - simple_pipeline.completed
        - simple_pipeline.failed
        - simple_pipeline.canceled
      title: WebhookEvent
      description: |-
        Supported webhook events (namespaced by resource family).

        Add new members as more resources gain webhook fire points. Validation
        lives in the API layer; the DB does not hard-code the allowed set.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````