fix webhook doc
This commit is contained in:
@@ -121,17 +121,14 @@ Modify an existing webhook's configuration. Remember that webhooks can only be u
|
|||||||
```python Python
|
```python Python
|
||||||
# Update webhook in default project
|
# Update webhook in default project
|
||||||
updated_webhook = client.update_webhook(
|
updated_webhook = client.update_webhook(
|
||||||
webhook_id="wh_123",
|
|
||||||
name="Updated Logger",
|
name="Updated Logger",
|
||||||
url="https://your-app.com/new-webhook"
|
url="https://your-app.com/new-webhook"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Or update in a specific project
|
# Or update in a specific project
|
||||||
updated_webhook = client.update_webhook(
|
updated_webhook = client.update_webhook(
|
||||||
webhook_id="wh_123",
|
|
||||||
name="Updated Logger",
|
name="Updated Logger",
|
||||||
url="https://your-app.com/new-webhook",
|
url="https://your-app.com/new-webhook"
|
||||||
project_id="proj_123"
|
|
||||||
)
|
)
|
||||||
print(updated_webhook)
|
print(updated_webhook)
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user