---
updatedAt: 2025-08-11T18:18:17.000Z
agentTools:
  projectIndex: https://docs.keycafe.com/llms.txt
---

# Edit Webhook

Edit a webhook with a PUT request to the endpoint with the webhook ID.

The post body should contain the data to be updated as a JSON object:

```json json
{
    "url": "https://www.example.com/webhook-test",
    "username": "username",
    "password": "password"
}
```

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Keycafe API",
    "version": "0"
  },
  "x-explorer-enabled": true,
  "x-proxy-enabled": true,
  "x-samples-languages": [
    "shell",
    "python",
    "go"
  ],
  "servers": [
    {
      "url": "https://www.keycafe.com/"
    }
  ],
  "components": {
    "securitySchemes": {
      "BasicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "BasicAuth": []
    }
  ],
  "paths": {
    "/v0/webhook/{webhook_id}": {
      "put": {
        "tags": [
          "Webhook"
        ],
        "summary": "Edit Webhook",
        "description": "Edit a webhook with a PUT request to the endpoint with the webhook ID.",
        "operationId": "edit-webhook",
        "parameters": [
          {
            "name": "webhook_id",
            "in": "path",
            "required": true,
            "description": "The unique identifier of webhook. </br> Example: 123456",
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": ""
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "The webhook URL that the event data will be posted to."
                  },
                  "username": {
                    "type": "string",
                    "description": "The HTTP basic authentication username."
                  },
                  "password": {
                    "type": "string",
                    "description": "The HTTP basic authentication password."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook updated successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "description": "Unique identifier of the webhook.",
                      "example": 123456
                    },
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "description": "Updated endpoint URL for receiving webhook events.",
                      "example": "https://www.example.com/webhook-test"
                    },
                    "username": {
                      "type": "string",
                      "description": "Updated username for HTTP Basic Authentication.",
                      "example": "username"
                    },
                    "password": {
                      "type": "string",
                      "description": "Updated password for HTTP Basic Authentication.",
                      "example": "password"
                    }
                  }
                },
                "examples": {
                  "Result": {
                    "value": "{\n    \"id\": 123456,\n    \"url\": \"https://www.example.com/webhook-test\",\n    \"username\": \"username\",\n    \"password\": \"password\"\n}"
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```