Update Webhook

PUT {{baseUrl}}/extensions/event-webhooks/:eventWebhookID

Update organization webhook details.
Requires access_token as a Bearer {{token}} in the Authorization header with user-write scope.

Request Body

{"description"=>"<string>", "filters"=>{"op"=>"and", "conditions"=>[{"op"=>"eq", "lhs"=>"service_id", "rhs"=>"612ce2a67115ff9a44a1052d"}, {"lhs"=>"service_id", "op"=>"eq", "rhs"=>"60cb2d38ec1645d56399562e"}, {"op"=>"and", "conditions"=>[{"lhs"=>"service_id", "op"=>"eq", "rhs"=>"60cb200fceb9ac000726a24f"}, {"lhs"=>"alert_source_id", "op"=>"eq", "rhs"=>"5d6509f5d062840e307cc431"}]}]}, "header"=>{"abc"=>"xyz"}, "name"=>"test13345", "triggers"=>[{"name"=>"Incident Triggered", "event_class"=>"incident", "event_type"=>"triggered"}, {"name"=>"Incident Acknowledged", "event_class"=>"incident", "event_type"=>"acknowledged"}, {"name"=>"Incident Resolved", "event_class"=>"incident", "event_type"=>"resolved"}, {"name"=>"Incident Reassigned", "event_class"=>"incident", "event_type"=>"reassigned"}], "urls"=>[{"method"=>"POST", "url"=>"https://abc.punit"}], "mail_ids"=>["abc@gmail.com"]}

HEADERS

KeyDatatypeRequiredDescription
Authorizationnull
Content-Typestring

RESPONSES

status: OK

{&quot;data&quot;:{&quot;id&quot;:&quot;6214d8a9f685fedb94811b56&quot;,&quot;created_at&quot;:&quot;2022-02-22T12:35:53.329Z&quot;,&quot;updated_at&quot;:&quot;2022-02-22T12:58:00.654Z&quot;,&quot;organization_id&quot;:&quot;60cb200bc9de4a0008d2fc41&quot;,&quot;author_id&quot;:&quot;60f12dd3814bef0008c4036e&quot;,&quot;name&quot;:&quot;test1334&quot;,&quot;slug&quot;:&quot;test122&quot;,&quot;description&quot;:&quot;&quot;,&quot;triggers&quot;:[{&quot;event_class&quot;:&quot;incident&quot;,&quot;event_type&quot;:&quot;triggered&quot;},{&quot;event_class&quot;:&quot;incident&quot;,&quot;event_type&quot;:&quot;acknowledged&quot;},{&quot;event_class&quot;:&quot;incident&quot;,&quot;event_type&quot;:&quot;resolved&quot;},{&quot;event_class&quot;:&quot;incident&quot;,&quot;event_type&quot;:&quot;reassigned&quot;}],&quot;urls&quot;:[{&quot;url&quot;:&quot;https://abc.punit&quot;,&quot;method&quot;:&quot;post&quot;}],&quot;header&quot;:{&quot;abc&quot;:&quot;xyz&quot;},&quot;filters&quot;:{&quot;op&quot;:&quot;and&quot;,&quot;conditions&quot;:[{&quot;op&quot;:&quot;eq&quot;,&quot;lhs&quot;:&quot;service_id&quot;,&quot;rhs&quot;:&quot;60cb200fceb9ac000726a24f&quot;}]},&quot;max_retry&quot;:3,&quot;mail_ids&quot;:null,&quot;send_custom_payload&quot;:false,&quot;custom_payload&quot;:&quot;&quot;}}