Update an existing webhook
Python
# To use the Python SDK, install the package: # pip install mem0ai from mem0 import MemoryClient client = MemoryClient(api_key="your_api_key") # Update a webhook webhook = client.update_webhook( webhook_id="your_webhook_id", name="Updated Webhook", url="https://new-webhook-url.com", event_types=["memory:add"] ) print(webhook) # Delete a webhook response = client.delete_webhook(webhook_id="your_webhook_id") print(response)
{ "message": "Webhook updated successfully" }
API key authentication. Prefix your Mem0 API key with 'Token '. Example: 'Token your_api_key'
Unique identifier of the webhook
Webhook updated successfully
The response is of type object.
object
Was this page helpful?