The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Not able to enable hooks using api

J Manas Kumar
Contributor
August 28, 2023

Hi Team, i am trying to enable the hooks in the project settings in bit bucket using api call.

while i am trying to enable it using below URI provided by bit bucket but not able to do it.

 'http://{baseurl}/rest/api/latest/projects/{projectKey}/settings/hooks/{hookKey}/enabled'

 

but i am getting the below error(attached as image) .

but when i am enabling manually in bit bucket and disabling again, then i am calling the api, its enabling the hook settings.

don't know why it's happening.

BitBucket Version - 7.2.1

IMG-1641.jpg

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events