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

# Update Webhook

> Update a webhook's events or scope. The `targetUrl` cannot be changed and is ignored if sent; the handshake is repeated against the existing URL to confirm it is still reachable. Send `X-Skip-Handshake: 1` to skip it.



## OpenAPI

````yaml /openapi.json put /hooks/{hook_id}
openapi: 3.1.1
info:
  title: Everhour API
  version: 1.0.0
  license:
    name: Proprietary
    identifier: LicenseRef-Proprietary
servers:
  - url: https://api.everhour.com
security:
  - ApiKeyAuth: []
tags:
  - name: Clients
  - name: Custom Fields
  - name: Expenses
  - name: Invoices
  - name: Projects
  - name: Reports
  - name: Schedule
  - name: Tasks
  - name: Time Off
  - name: Time Records
  - name: Timecards
  - name: Timers
  - name: Timesheets
  - name: Users
  - name: Webhooks
paths:
  /hooks/{hook_id}:
    put:
      tags:
        - Webhooks
      summary: Update Webhook
      description: >-
        Update a webhook's events or scope. The `targetUrl` cannot be changed
        and is ignored if sent; the handshake is repeated against the existing
        URL to confirm it is still reachable. Send `X-Skip-Handshake: 1` to skip
        it.
      operationId: updateWebhook
      parameters:
        - name: hook_id
          in: path
          required: true
          description: Webhook ID
          schema:
            type: number
            example: 280382
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookRequestUpdateRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Webhook'
        '401':
          description: Unauthorized
components:
  schemas:
    WebhookRequestUpdateRequest:
      type: object
      properties:
        events:
          type: array
          description: >-
            Replacement list of events. `targetUrl` and scope cannot be changed
            after creation.
          items:
            type: string
          example:
            - api:time:updated
      required:
        - events
    Webhook:
      type: object
      properties:
        id:
          type: number
          description: Webhook ID
          example: 12345
        targetUrl:
          type: string
          example: https://some-secure-endpoint.com/path
        events:
          type: array
          items:
            type: string
          example:
            - api:time:updated
        project:
          type:
            - string
            - 'null'
          description: You can receive events only for specific project
          example: ev:12345657890
        active:
          type: boolean
          example: true
        createdAt:
          type: string
          description: 'Datetime when webhook was created (format: Y-m-d H:i:s)'
          example: '2018-03-05 16:17:14'
        lastUsedAt:
          type: string
          description: 'Datetime when webhook was last used (format: Y-m-d H:i:s)'
          example: '2018-03-05 20:01:58'
      required:
        - id
        - targetUrl
        - events
        - createdAt
        - lastUsedAt
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key

````