---
title: "Change the steps a webhook hears"
description: "Other routes API"
---

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

# Change the steps a webhook hears

{/* Generated by apps/docs/scripts/generate.ts from contracts/api/openapi.yaml. Do not edit. */}
<div class="cvo-op">
<div class="cvo-op-main">

<div class="cvo-op-header">
<div class="cvo-op-path-row">
<span class="cvo-method" data-method="patch">PATCH</span>
<code class="cvo-op-path-code">/v1/webhooks/&#123;id&#125;</code>
</div>
</div>

Replaces the history codes this webhook hears. `null` hears every step. Steps already queued are posted as they were.

## Path parameters

## Request body

`application/json`, required

## Response

A `200` answer carries these fields.

## Status codes

| Status | Meaning |
|---|---|
| `200` | The webhook as it now is. |
| `400` | `events` is missing, names a code that is not in the history's list, is empty or names one twice (`invalid_webhook_events`). |
| `401` | No usable credential was sent (`invalid_credentials`). |
| `404` | This company has no live webhook with this id (`unknown_webhook`). The same answer is given for a stopped one, another company's, or an invalid id. |

</div>
<div class="cvo-op-aside">

</div>
</div>

Source: https://docs.certinvo.com/reference/api/other/change-the-steps-a-webhook-hears/index.mdx
