Open canny[bot] opened 4 months ago
This issue has been linked to a Canny post: Import/Export/Edit webhook in JSON :tada:
Matt Fellows - September 13, 2021
Hi Alan, apologies this was overlooked. You can definitely create webhooks via JSON. This is supported via the API already (follow the HAL links to create one), the CLI (see https://docs.pact.io/pact_broker/webhooks/debugging_webhooks/#creating-webhooks) and via our Terraform provider (https://docs.pact.io/pact_broker/terraform_provider/).
Would be good to update existing webhooks in json format instead of via the form as sometimes its easier to copy paste settings via json.
As an aside, the form has a basic auth setting with
autocomplete="new-password"
parameters set on the input, which will automatically enter my username/password in the form when editing even though i dont have or want one for the webhook. It means every time i need to update the webhook i have to clear the username and password too.https://pact.canny.io/admin/board/feature-requests/p/importexportedit-webhook-in-json