---
updatedAt: 2025-06-09T22:28:59.000Z
agentTools:
  projectIndex: https://docs.enerflo.io/llms.txt
---

# Update an existing Webhook subscription

The only attribute that can be change on an existing webhook is the target URL. You cannot change {event_names} or {versions}.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "enerflo-10-api",
    "version": "1.0.2"
  },
  "servers": [
    {
      "url": "https://enerflo.io/api/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "api-key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/hook/{id}": {
      "put": {
        "summary": "Update an existing Webhook subscription",
        "description": "The only attribute that can be change on an existing webhook is the target URL. You cannot change {event_names} or {versions}.",
        "operationId": "update-a-webhook-subscription",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "This is the webhook ID that was returned as the `id` at the time of creation.",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "target_url"
                ],
                "properties": {
                  "target_url": {
                    "type": "string",
                    "description": "This is the full URL of the destination that will receive the POST payload the webhook will deliver. (Ex: \"https://yourtarget.com/path\")"
                  }
                }
              }
            },
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "target_url"
                ],
                "properties": {
                  "target_url": {
                    "type": "string",
                    "description": "This is the full URL of the destination that will receive the POST payload the webhook will deliver. (Ex: \"https://yourtarget.com/path\")"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"result\": \"success\",\n  \"data\": {\n    \"id\": 103927,\n    \"company_id\": 1793,\n    \"name\": null,\n    \"event\": \"new_customer\",\n    \"target_url\": \"https//:google.com\",\n    \"headers\": null,\n    \"version\": \"v2\",\n    \"send_meta\": 0,\n    \"created_at\": \"2023-12-08 18:15:26\",\n    \"updated_at\": \"2023-12-08 18:30:29\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "string",
                      "example": "success"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 103927,
                          "default": 0
                        },
                        "company_id": {
                          "type": "integer",
                          "example": 1793,
                          "default": 0
                        },
                        "name": {},
                        "event": {
                          "type": "string",
                          "example": "new_customer"
                        },
                        "target_url": {
                          "type": "string",
                          "example": "https//:google.com"
                        },
                        "headers": {},
                        "version": {
                          "type": "string",
                          "example": "v2"
                        },
                        "send_meta": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "created_at": {
                          "type": "string",
                          "example": "2023-12-08 18:15:26"
                        },
                        "updated_at": {
                          "type": "string",
                          "example": "2023-12-08 18:30:29"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```