Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Cannot create multiple branch restrictions using single curl command

shivaram July 30, 2020

Hello,

I have a problem creating multiple branch restrictions using a single curl command. 

My code is:

curl -u username:password -X POST -H "Content-Type: application/application/vnd.atl.bitbucket.bulk+json" https://api.bitbucket.org/2.0/repositories/proj/myrepo/branch-restrictions \
-d '[{
"kind": "require_passing_builds_to_merge",
"pattern": "develop*",
"value": 1,
"branch_match_kind": "glob",
"groups": []
}, {
"kind": "push",
"pattern": "feature*",
"value": null,
"groups": []
}]'

and also could you please explain how can i give in user and groups in this code.

 

Please and thanks 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events