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

KeyDatatypeRequiredDescription
Api-Tokenstring(Required)
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;webhook&quot;:{&quot;enabled&quot;:&quot;\u003cboolean\u003e&quot;,&quot;url&quot;:&quot;\u003cstring\u003e&quot;,&quot;include_members&quot;:&quot;\u003cboolean\u003e&quot;,&quot;enabled_events&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;include_unread_count&quot;:&quot;\u003cboolean\u003e&quot;}}