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.