Hello All,
I am looking for a JAVA rest API to create branch in Bit Bucket repo.
I have tried with the following rest api am not able to get the results.
https://xxxx/rest/api/1.0/projects/xxx/repos/Test/branches{fields:{name:my-feature-branch,{startPoint:master}}}
Please help me on this.
Thanks
Naveen
Hi,
I've just tried
curl -X POST \
https://xxx/bitbucket/rest/branch-utils/1.0/projects/xxx/repos/xxx/branches \
-H 'Authorization: Bearer Nxxxq' \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"name": "feature/my-feature-branch",
"startPoint": "dev"
}'
and it works perfectly.
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.