Update webhook

PUT https://{{base_url}}/v3/webhooks/{{webhook_uid}}

The Update webhook request allows you to update the details of an existing webhook in the stack.

To use the API Request, you will need to authenticate yourself either with a Management Token (highly recommended) or an Authtoken. 
Read more about it in Authentication.


For more information, refer to the Update webhook API Reference document

Request Body

{"webhook"=>{"name"=>"Webhook Update Test", "destinations"=>[{"target_url"=>"http://example.com", "http_basic_auth"=>"username", "http_basic_password"=>"password", "authentication_type"=>"Basic", "custom_header"=>[{"header_name"=>"", "value"=>""}]}], "notifiers"=>"john.doe@gmail.com", "channels"=>["assets.create"], "branches"=>["main"], "retry_policy"=>"automatic", "disabled"=>false, "concise_payload"=>true}}

HEADERS

KeyDatatypeRequiredDescription
api_keystringEnter the API key of your stack.
authtokenstringEnter your authtoken.
authorizationstringFor this call we recommend you to use management token.
Content-TypestringEnter "application/json" to pass a request body.