# Update a webhook

Endpoint: PATCH /api/v1/webhooks/{webhook_id}
Version: 0.0.1
Security: api_token

## Security:

  - `api_token` (unknown)
    http bearer Onboarded API token

## Path parameters:

  - `webhook_id` (string, required)

## Request fields (application/json):

  - `description` (string)

  - `subscribed_events` (array)

## Response 200:

  - `200` (unknown)
    Webhook

## Response 200 fields (application/json):

  - `id` (string, required)
    Webhook Identifier

  - `url` (string, required)

  - `token` (string, required)

  - `description` (any, required)

  - `created_at` (string, required)
    a string to be decoded into a DateTime.Utc

  - `last_used_at` (any, required)

  - `subscribed_events` (array, required)

## Response 400:

  - `400` (unknown)
    The request did not match the expected schema

## Response 400 fields (application/json):

  - `issues` (array, required)

  - `issues._tag` (string, required)
    The tag identifying the type of parse issue
    Enum: "Pointer", "Unexpected", "Missing", "Composite", "Refinement", "Transformation", "Type", "Forbidden"

  - `issues.path` (array, required)
    The path to the property where the issue occurred

  - `issues.path._tag` (string, required)
    Enum: "symbol"

  - `issues.path.key` (string, required)

  - `issues.message` (string, required)
    A descriptive message explaining the issue

  - `message` (string, required)

  - `_tag` (string, required)
    Enum: "HttpApiDecodeError"

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `message` (string, required)

  - `_tag` (string, required)
    Enum: "Unauthorized"

## Response 403:

  - `403` (unknown)
    Forbidden

## Response 403 fields (application/json):

  - `message` (string, required)

  - `_tag` (string, required)
    Enum: "Forbidden"

## Response 404:

  - `404` (unknown)
    ResourceNotFoundError

## Response 404 fields (application/json):

  - `message` (string, required)

  - `_tag` (string, required)
    Enum: "ResourceNotFoundError"

