# org.tangled.webhook.updateWebhook

> Published by [tangled.org](https://lexicon.garden/identity/did:plc:wshs7t2adsemcrrd4snkeqli)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.webhook.updateWebhook)
- [Documentation](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.webhook.updateWebhook/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.webhook.updateWebhook/examples)

## Definitions

### `org.tangled.webhook.updateWebhook`

**Type**: `procedure`

Update an existing webhook. Only supplied fields are changed.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `active` | `boolean` | No |  |
| `events` | `array` | No |  |
| `repo` | `string` (did) | Yes | DID of the repository as minted by the knot. |
| `secret` | `string` | No |  |
| `url` | `string` (uri) | No |  |
| `webhook` | `string` | Yes | Webhook ID to update. |

#### Errors

- **WebhookNotFound**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Update an existing webhook. Only supplied fields are changed.",
      "errors": [
        {
          "name": "WebhookNotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "active": {
              "type": "boolean"
            },
            "events": {
              "items": {
                "ref": "org.tangled.webhook.defs#eventType",
                "type": "ref"
              },
              "type": "array"
            },
            "repo": {
              "description": "DID of the repository as minted by the knot.",
              "format": "did",
              "type": "string"
            },
            "secret": {
              "type": "string"
            },
            "url": {
              "format": "uri",
              "type": "string"
            },
            "webhook": {
              "description": "Webhook ID to update.",
              "type": "string"
            }
          },
          "required": [
            "repo",
            "webhook"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "org.tangled.webhook.updateWebhook",
  "lexicon": 1
}
```
