create webhook

POST {{baseUrl}}/channels/:channel_id/webhooks

Create a new webhook for the channel

Request Body

{"name"=>"<string>", "avatar"=>"<string,null>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:1,&quot;application_id&quot;:&quot;\u003cstring,null\u003e&quot;,&quot;avatar&quot;:&quot;\u003cstring,null\u003e&quot;,&quot;channel_id&quot;:&quot;\u003cstring,null\u003e&quot;,&quot;guild_id&quot;:&quot;\u003cstring,null\u003e&quot;,&quot;user&quot;:&quot;\u003cnull\u003e&quot;,&quot;token&quot;:&quot;\u003cstring,null\u003e&quot;,&quot;url&quot;:&quot;\u003cstring,null-uri\u003e&quot;}