---
updatedAt: 2025-03-06T22:38:31.000Z
agentTools:
  projectIndex: https://developer.influence.io/llms.txt
---

# Update a webhook

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Influence.io Platform API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://platform.api.influence.io"
    }
  ],
  "paths": {
    "/v1/webhooks/{webhookId}": {
      "patch": {
        "summary": "Update a webhook",
        "parameters": [
          {
            "$ref": "#/components/parameters/webhookIdPath"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated webhook.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "webhook": {
                      "$ref": "#/components/schemas/webhook"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "webhook"
        ]
      }
    }
  },
  "components": {
    "parameters": {
      "webhookIdPath": {
        "name": "webhookId",
        "description": "The ID of a webhook",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string"
        }
      }
    },
    "schemas": {
      "webhook": {
        "title": "Webhook",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "topic": {
            "$ref": "#/components/schemas/webhookTopic"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        }
      },
      "webhookTopic": {
        "title": "Topic",
        "type": "string",
        "enum": [
          "customers/updated",
          "customers/tier_changed",
          "points/earned",
          "points/redeemed",
          "referrals/started",
          "referrals/completed"
        ]
      }
    },
    "securitySchemes": {
      "ApiTokenAuth": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "ApiTokenAuth": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```