Skip to content

Commit a2988ef

Browse files
authored
Fix sample snippet incorrectly checking webhook type (#7241)
1 parent 1be57a9 commit a2988ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/events/Webhook_Events.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ To properly acknowledge a `PING` payload, return a `204` response with no body:
5151
```py
5252
@app.route('/', methods=['POST'])
5353
def my_command():
54-
if request.json["type"] == 'PING':
54+
if request.json["type"] == 0:
5555
return Response(status=204)
5656
```
5757
</Collapsible>

0 commit comments

Comments
 (0)