Choose which events to subscribe to
PUT {{baseUrl}}/v3/applications/settings/webhook
Choose which events to subscribe to
Chooses which events for your webhook server to receive payloads for. By subscribing to specific events based on your own needs, you can control the number of HTTP requests to your webhook server.
https://sendbird.com/docs/chat/v3/platform-api/guides/webhooks#2-choose-which-events-to-subscribe-to
Request Body
{"enabled"=>"<boolean>", "url"=>"<string>", "include_members"=>"<boolean>", "enabled_events"=>["<string>", "<string>"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Api-Token | string | (Required) | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"webhook":{"enabled":"\u003cboolean\u003e","url":"\u003cstring\u003e","include_members":"\u003cboolean\u003e","enabled_events":["\u003cstring\u003e","\u003cstring\u003e"],"include_unread_count":"\u003cboolean\u003e"}}