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
Key | Datatype | Required | Description |
---|---|---|---|
api_key | string | Enter the API key of your stack. | |
authtoken | string | Enter your authtoken. | |
authorization | string | For this call we recommend you to use management token. | |
Content-Type | string | Enter "application/json" to pass a request body. |