Hi guys,
does someone know whether these commands, besides the URL, will be valid after the API changes?
curl -k -X POST --user user:pass "https://api.bitbucket.org/1.0/repositories" -d "name=project_name"
and
curl -s -u user:passwd -k --header "Content-Type: application/json" -X PUT "https://bitbucket.**.com/rest/api/1.0/projects/{project-KEY}/repos/{REPONAME}/permissions/groups?permission=REPO_WRITE&name={GROUP NAME}"
The Bitbucket Server API (the second in your example, with `https://bitbucket.**.com/rest/api`) is built into the Bitbucket Server version you've installed. That API only changes when the BB Server version changes, and (unless you perform an upgrade on 12 April 2019) it will not change on 12 April 2019.
For Bitbucket Cloud (the first one, with `api.bitbucket.org`), all 1.0 endpoints are being discontinued as of 12 April 2019 (per https://developer.atlassian.com/cloud/bitbucket/deprecation-notice-v1-apis/). You will need to update the call to use the corresponding 2.0 endpoint: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D#post
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.