Update a webhook destination

PUT {{baseUrl}}/v3/webhooks/:id

Update the values in a webhook destination.
Note: You only need to specify fields that need to change when you call this endpoint. Empty fields in the request do not overwrite existing fields.
Note: You should limit how many webhook destinations you have for each trigger type. When Nylas retries a webhook, the retry goes to all of the destinations for that trigger type, and can result in a lot of messages. Some webhook testing tools rate limit or block you if your endpoint generates too much traffic. Nylas blocks ngrok connections in v3 for this reason.

Request Body

{"description"=>"<string>", "trigger_types"=>["<string>", "<string>"], "webhook_url"=>"<string>", "status"=>"<string>", "notification_email_addresses"=>["<string>", "<string>"]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;data&quot;:{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;trigger_types&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;callback_url&quot;:&quot;\u003cstring\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;,&quot;notification_email_addresses&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;status_updated_at&quot;:&quot;\u003cinteger\u003e&quot;,&quot;created_at&quot;:&quot;\u003cinteger\u003e&quot;,&quot;updated_at&quot;:&quot;\u003cinteger\u003e&quot;},&quot;request_id&quot;:&quot;\u003cstring\u003e&quot;}