Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to set secret in create webhook API call?

A Rankin October 7, 2022

I have crafted a curl to the rest API in Bitbucket Server to create a webhook for an existing repository, I am able to set all the required fields, except the 'secret' value.

My experience has been that without this secret any webcall back to my Argo Events 'Sensor' results in a missing signature header error. 

Obviously I could set the value manually in a click ops way, but I'm trying to automate this process. 

Any tips or suggestions? I've already looked through the documentation for creating a webhook, updating a webhook, looked through existing github.com repositories for some example code, and haven't found a solution yet. 

Thank you kindly

 

1 answer

2 votes
A Rankin October 7, 2022

Actually just figured it out, I see that no one was able to find the answer so far (and it is absent from the documentation!!)

 

  "configuration": {"createdBy": "bitbucket","secret": "password"},

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events