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

# Context.dev: Contextdev Update Webdb Webhook

> Change a Context.dev WebDB webhook's URL, events, or collection. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Change a Context.dev WebDB webhook's URL, events, or collection.

> [!NOTE]
>
> Tool ID: `contextdev_update_webdb_webhook`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'contextdev_update_webdb_webhook',
  {
    "webhook_id": "webhook_123"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute contextdev_update_webdb_webhook --input '{
  "webhook_id": "webhook_123"
}' --json
```

## Example response

The static output schema lacks the details for a reliable example. Use `deepline describe contextdev_update_webdb_webhook --json` for the complete live contract.

## Input reference

Fields to update on a WebDB webhook.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.webhook_id` | `string` | Yes | — | Webhook ID. |
| `payload.url` | `string` | No | — | HTTPS URL that receives events. Format: `uri`. |
| `payload.events` | `array` | No | — | Events sent to this webhook. Minimum items: 1. |
| `payload.collection_id` | `string` | No | — | Collection to watch. |
| `payload.on` | `object` | No | — | Sends row\.updated only when one of these fields changes. |
| `payload.delivery` | `"instant" \| "batch"` | No | — | Send events immediately or in batches. Allowed: `instant`, `batch`. |
| `payload.batch` | `object` | No | — | Batch delivery settings. |
| `payload.tags` | `array` | No | — | Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters. Maximum items: 20. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Fields to update on a WebDB webhook.",
    "properties": {
      "webhook_id": {
        "type": "string",
        "description": "Webhook ID."
      },
      "url": {
        "type": "string",
        "description": "HTTPS URL that receives events.",
        "format": "uri"
      },
      "events": {
        "type": "array",
        "description": "Events sent to this webhook.",
        "minItems": 1,
        "items": {
          "type": "string",
          "enum": [
            "row.created",
            "row.updated",
            "row.removed",
            "row.error",
            "row.cap_consumed",
            "run.completed",
            "run.failed",
            "credits.low",
            "credits.exhausted"
          ]
        }
      },
      "collection_id": {
        "type": "string",
        "description": "Collection to watch."
      },
      "on": {
        "type": "object",
        "description": "Sends row.updated only when one of these fields changes.",
        "properties": {
          "fields": {
            "type": "array",
            "description": "Fields that trigger row.updated events.",
            "minItems": 1,
            "maxItems": 20,
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "fields"
        ],
        "additionalProperties": false
      },
      "delivery": {
        "type": "string",
        "description": "Send events immediately or in batches.",
        "enum": [
          "instant",
          "batch"
        ]
      },
      "batch": {
        "type": "object",
        "description": "Batch delivery settings.",
        "properties": {
          "max_size": {
            "type": "integer",
            "description": "Maximum events in one batch.",
            "minimum": 1,
            "maximum": 500
          },
          "max_delay": {
            "type": "string",
            "description": "Maximum wait before sending a batch.",
            "pattern": "^(\\d+)(s|m|h|d)$"
          }
        },
        "additionalProperties": false
      },
      "tags": {
        "type": "array",
        "description": "Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.",
        "maxItems": 20,
        "items": {
          "type": "string",
          "minLength": 1,
          "maxLength": 50
        }
      }
    },
    "required": [
      "webhook_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | — |
| `result.data.id` | `string` | Yes | — | — |
| `result.data.url` | `string` | Yes | — | Format: `uri`. |
| `result.data.events` | `array` | Yes | — | — |
| `result.data.collection_id` | `string \| null` | Yes | — | — |
| `result.data.on` | `object \| null` | Yes | — | — |
| `result.data.on.fields` | `array` | Yes | — | — |
| `result.data.delivery` | `"instant" \| "batch"` | Yes | — | Allowed: `instant`, `batch`. |
| `result.data.batch` | `object \| null` | Yes | — | — |
| `result.data.batch.max_size` | `integer` | No | — | Minimum: 1. Maximum: 500. |
| `result.data.batch.max_delay` | `string` | No | — | Pattern: `^(\d+)(s\|m\|h\|d)$`. |
| `result.data.status` | `"active" \| "disabled"` | Yes | — | Allowed: `active`, `disabled`. |
| `result.data.created_at` | `string` | Yes | — | Format: `date-time`. |
| `result.data.updated_at` | `string` | Yes | — | Format: `date-time`. |
| `result.data.key_metadata` | `object` | No | — | — |
| `result.meta` | `object` | No | — | — |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "properties": {
      "data": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "row.created",
                "row.updated",
                "row.removed",
                "row.error",
                "row.cap_consumed",
                "run.completed",
                "run.failed",
                "provider.capacity"
              ]
            }
          },
          "collection_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "on": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "fields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "fields"
            ],
            "additionalProperties": false
          },
          "delivery": {
            "type": "string",
            "enum": [
              "instant",
              "batch"
            ]
          },
          "batch": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "max_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 500
              },
              "max_delay": {
                "type": "string",
                "pattern": "^(\\d+)(s|m|h|d)$"
              }
            },
            "additionalProperties": false
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "disabled"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "key_metadata": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "url",
          "events",
          "collection_id",
          "on",
          "delivery",
          "batch",
          "status",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Context.dev provider guide](https://deepline.com/docs/providers/contextdev/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.