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.
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.