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: 

Bitbucket pipeline schedule PUT - not updating

Appan Ponnappan
July 3, 2019

I am trying to use the bitbucket API to update an existing pipeline schedule but it is not getting updated. But delete and create of a new schedule works as expected, hence there is a work-around for this, fortunately.

Curl command used is below:

curl -i -X PUT -H 'Content-Type: application/json' \
-H "Authorization: Bearer $BB_API_TKN" \
'https://api.bitbucket.org/2.0/repositories/<account>/<repo id>/pipelines_config/schedules/%7B<uuid without curly>%7D' \
-d '{"cron_pattern":"0 0 1 ? * TUE *"}' 

Tried passing the whole schedule object but that also does not help.

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Jeroen De Raedt
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 9, 2019

Hi @Appan Ponnappan

there is a PUT REST endpoint to update a schedule, however currently this only supports updating the status of the schedule (whether it is enabled or not). 

If you require this, fee free to open a feature request here: https://bitbucket.org/site/master/issues 

In the meantime, you probably got the right workaround by deleting and creating the schedule. 

TAGS
AUG Leaders

Atlassian Community Events